- Install Node.js v22.x.x
- Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Install wasm-pack:
cargo install wasm-pack
The command below should set the node to v22.x.x and run the tests.
nvm use 22 && wasm-pack test --node --all-features
The command below will build the project locally. However, the project ships as an npm package, so you need not build it locally.
wasm-pack build --target nodejs --release
- The middleware expects request data to already be aggregated, call an aggregator middleware like
app.use(express.json({ limit: '100mb' }))
before registering this middleware.