WAPM
is a product of Wasmer
, the WebAssembly runtime.
只要安装上 Wasmer
, 就自带 wapm
了 ✅
https://www.cnblogs.com/xgqfrms/p/16689037.html
WebAssembly Package Manager
WebAssembly apps and libraries
$ wapm -h
wapm-cli 0.5.5
USAGE:
wapm <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
add Add packages to the manifest without installing
bin Get the .bin dir path
config Config related subcommands
execute Execute a command, installing it temporarily if necessary
help Prints this message or the help of the given subcommand(s)
init Set up current directory for use with wapm
install Install a package
keys Manage minisign keys for verifying packages
list List the currently installed packages and their commands
login Logins into wapm, saving the token locally for future commands
logout Remove the token for the registry
publish Publish a package
remove Remove packages from the manifest
run Run a command from the package or one of the dependencies
run-background-update-check Run the background updater explicitly
search Search packages
uninstall Uninstall a package
validate Check if a directory or tar.gz is a valid wapm package
whoami Prints the current user (if authed) in the stdout
https://developer.mozilla.org/zh-CN/docs/WebAssembly/Rust_to_wasm
/src/rust-to-wasm-npm
# install package
$ wapm install cowsay
# test
$ wapm run cowsay Hello World!
$ wapm run cowsay Hello World2!
$ wapm run cowsay Hello World 2022!
https://wapm.io/syrusakbary/cowsay
# Prints the current user (if authed) in the stdout
$ wapm whoami
(not logged in)