4.0.0 • Published 6 years ago

wasmify v4.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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)
})
4.0.0

6 years ago

3.0.0

6 years ago

2.0.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago