0.2.0 • Published 11 months ago
@tangibl/tangibl-wasm v0.2.0
Tangibl WASM
This package provides a WASM interface for the tangibl-rs package.
Getting started
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.
Development
Build with the following:
wasm-pack build
Test in a headless browser:
wasm-pack test --headless --firefox
Integration
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.