$ cnpm install rust-verkle-wasm
For ESM
wasm-pack build. You should see a pkg folder appear.For a NodeJS module
wasm-pack build --target nodejs.For an ESM example, use below
js_codenpm install. You should see a node_modules folder appear.node -r esm stateless_update.js you should see a Uint8Array in the console.For NodeJS + Typescript, import in any .ts file as below:
import wasm from 'path/to/rust-verkle-wasm/pkg/rust_verkle_wasm'
Copyright 2013 - present © cnpmjs.org | Home |