block-quote On this pagechevron-down
copy Copy chevron-down
🏔️ Ecosystemchevron-right WAPM Getting Started This guide will introduce the wapm tool 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 wapm CLI!
Getting Started chevron-right With the tools installed, one can easily start using universal Wasm binaries by using the install command of wapm CLI:
Installing a package creates a local package directory called wapm_packages where all packages are installed.
circle-info
Did you know ...?
A WAPM package can be installed globally by adding the -g flag.
Eg:wapm install -g cowsay
While in a directory with WAPM packages, one may execute them with the run command:
Copy wapm run cowsay hello wapm!
Copy < hello wapm! >
-------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| || 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
circle-check
When executing WAPM, you can also customize the WebAssembly runtime used under the hood.
For example, if you want to use wasmer-js as the runtime, you can do: