This guide will introduce the
wapmtool and show a few common workflows. The WAPM client can install packages, manage WebAssembly dependencies, and expose WebAssembly behavior with commands.
WAPM comes bundled with Wasmer, so you just need to install Wasmer in your system to have the
With the tools installed, one can easily start using universal Wasm binaries by using the
wapm install cowsay
Installing a package creates a local package directory called
wapm_packageswhere all packages are installed.
While in a directory with WAPM packages, one may execute them with the
wapm run cowsay hello wapm!
< hello wapm! >
You can also install specific versions of packages using an
Great! You used a WAPM package in your system... now let's try to create our own package and publish it to WAPM so other users can use it
When executing WAPM, you can also customize the WebAssembly runtime used under the hood.
WAPM_RUNTIME=wasmer-js wapm run cowsay hello wapm!