364 B
364 B
Using WFA-JS
Download wfa.js
and wfa.wasm
from 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.