Skip to content

Commit 294d3af

Browse files
authored
add a link to the documentation for locateFile
1 parent 8ed88ef commit 294d3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A [full documentation](http://kripken.github.io/sql.js/documentation/#http://kri
1919

2020
## Usage
2121

22-
By default, *sql.js* uses [wasm](https://developer.mozilla.org/en-US/docs/WebAssembly), and thus needs to load a .wasm file in addition to the javascript library. You can find this file in `./node_modules/sql.js/dist/sql-wasm.wasm` after installing sql.js from npm, and add it to your static assets. Alternatively, you can load the file from a CDN :
22+
By default, *sql.js* uses [wasm](https://developer.mozilla.org/en-US/docs/WebAssembly), and thus needs to load a `.wasm` file in addition to the javascript library. You can find this file in `./node_modules/sql.js/dist/sql-wasm.wasm` after installing sql.js from npm, and add it to your static assets or load it from a CDN. Then use the [`locateFile`](https://emscripten.org/docs/api_reference/module.html#Module.locateFile) property of the configuration object passed to `initSqlJs` to indicate where the file is:
2323

2424
```javascript
2525
const initSqlJs = require('sql.js');

0 commit comments

Comments
 (0)