This package provides a WASM interface for the tangibl-rs package.
Simply use the package as follows:
import { parse } from "tangibl-wasm";
const ast = parse(topcodes);
if (ast) {
console.log(ast.name);
}
As for how to obtain the TopCodes, see the TopCodes WASM package.
Build with the following:
wasm-pack build
Test in a headless browser:
wasm-pack test --headless --firefox
If you would like to test the integration of your changes, you can use the NPM project under www/.
This example is hosted on GitHub pages.