4.0.0 • Published 6 years ago
wasmify v4.0.0
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)
})