Javascript
Last updated
Last updated
WebAssembly is already available from Javascript for both the browser and the server (Node.js) 🤗
In this case, Wasmer provides a lot of useful packages to interact with WebAssembly modules in Javascript easily.
In this section we will see how to setup both your server-side and browser environments to use WebAssembly, and also how to use WebAssembly modules that interact with the Operating System such as WASI using the different packages that Wasmer offer for Javascript.
Wasmer publishes various packages to NPM:
@wasmer/wasi
: The Package for using WASI easily from Node and the Browser
@wasmer/wasm-transformer
: it allows to run WebAssembly modules in browsers that doesn't have Wasm BigInt support
@wasmer/wasm-terminal
: with WebAssembly files
@wasmer/wasmfs
: the filesystem for Wasm
Let's start!