wasmify
v4.0.0
Published
Require WebAssembly modules with Browserify.
Downloads
19
Maintainers
Readme
wasmify
Require WebAssembly modules with Browserify.
Use this Browserify plugin to import WebAssembly binaries.
Install
$ npm i -D wasmify
Simply load the plugin:
$ browserify -p wasmify
Which allows you to import .wasm
files in your source:
const sampleModule = require('./sample.wasm')
sampleModule
.then(mod => WebAssembly.initialize(mod, imports))
.then(sample => {
sample.main(12, 34)
})