@rhcp/arc_replace_wasm
v0.1.2
Published
A WebAssembly build of the Mimir arc_replace transform, suitable for use in Nodejs and browsers.
Downloads
1
Keywords
Readme
WebAssembly build of the arc_replace
transform
This is a WebAssembly build of the arc_replace
transform, suitable for use in Nodejs and browsers.
Initial setup
Install wasm-pack.
The wasm-pack site recommends curling into your shell to install, but I prefer using cargo:
cargo install wasm-pack
Once wasm-pack is installed, you can build, test, and publish this package.js
🛠️ Build with wasm-pack build
wasm-pack build --scope rhcp --out-name arc_replace --target nodejs
Default is a release build with optimizations and no debug info. Add --dev
for a debug build.
🔬 Test in Headless Browsers with wasm-pack test
wasm-pack test --headless --firefox
🎁 Publish to NPM with wasm-pack publish
wasm-pack publish -a public --tag latest