@wasm-tool/node

0.1.0 • Public • Published

@wasm-tool/node

WASM loader for Node

Requires the latest version of Node (Node v10).

Installation

npm i @wasm-tool/node

Usage

node --experimental-modules --loader @wasm-tool/node index.mjs

Or, if your WASM is the main executable:

node --experimental-modules --loader @wasm-tool/node index.wasm

See example.

Development

In order to test any changes you can clone this repository and run the example locally

npm install
cd example
node --experimental-modules --loader ../loader.mjs index.mjs

/@wasm-tool/node/

    Package Sidebar

    Install

    npm i @wasm-tool/node

    Weekly Downloads

    4

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    4.59 kB

    Total Files

    9

    Last publish

    Collaborators

    • xtuc
    • sendilkumarn