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
- Host: GitHub
- URL: https://github.com/wasm-tool/node-loader
- Owner: wasm-tool
- License: mit
- Created: 2018-06-15T13:09:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-18T11:45:54.000Z (almost 7 years ago)
- Last Synced: 2025-03-31T05:31:40.321Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 48
- Watchers: 5
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - node-loader - tool | 46 | (JavaScript)
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
```