add import instructions to README
This commit is contained in:
parent
547dffd8ee
commit
aed3ac6f8f
11
README.md
Normal file
11
README.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Using WFA-JS
|
||||||
|
|
||||||
|
Download `wfa.js` and `wfa.wasm`from [releases](https://git.tronnet.net/tronnet/WFA-JS/releases) to your project. Add to your script:
|
||||||
|
|
||||||
|
```
|
||||||
|
import wfa from "./wfa.js"
|
||||||
|
await wfa("<path to wasm>")
|
||||||
|
console.log(wfAlign(...))
|
||||||
|
```
|
||||||
|
|
||||||
|
Where `<path to wasm>` is the path from the site root ie. `./scripts/wfa.wasm`. This will depend on your project structure.
|
Loading…
Reference in New Issue
Block a user