An open API service indexing awesome lists of open source software.

https://github.com/wasm-tool/node-loader

WASM loader for Node
https://github.com/wasm-tool/node-loader

Last synced: 9 months ago
JSON representation

WASM loader for Node

Awesome Lists containing this project

README

          

# @wasm-tool/node

> WASM loader for Node

Requires the latest version of Node (Node v10).

## Installation

```sh
npm i @wasm-tool/node
```

## Usage

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

Or, if your WASM is the main executable:

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

See [example](https://github.com/wasm-tool/node-loader/tree/master/example).

## Development

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

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