Skip to content

SebastienGllmt/node-wasm-component-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-wasm-component-loader

Load WASM components based on nodejs customization hooks (custom loaders)

Installation

npm install --save-dev node-wasm-component-loader

Usage

If you have a file index.ts that uses a WASM component (ex: import { add } from "./adder.wasm")

You can register your custom hook (custom loader) when calling node as follows:

node --import node-wasm-component-loader ./index.ts

Caveats

  1. This only works for ESM (type: module)
  2. Custom loaders (hooks) are still experimental in nodejs

Release

  1. npm install
  2. npm publish

About

Load WASM Components with type annotations from Nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published