Skip to main content
Module

x/wasm/examples/node/README.md

Monorepo for Javascript WebAssembly packages by Wasmer
Go to Latest
File

Wasmer/WASI Node examples

You can run the code with:

npm i

Hello World

This example outputs hello world in the stdout.

$ node helloworld.mjs
hello world
(exit code: 0)

Filesystem

This example lists the files and directories on /.

$ node fs.mjs
"./a"
"./b"
"./file"
(exit code: 0)