/wasm

fast wasm modules

Primary LanguageJavaScriptMIT LicenseMIT

all other wasm modules were slow or/and leaked memory, so I made my own :)

yarn add @evan/wasm

you can find examples in examples/

targets:

  • deno
    • deno.js
    • simd.js
    • fetch.js
  • node
    • node.cjs
    • node.mjs
    • simd.mjs
import * as mod from '@evan/wasm/target/<mod>/<target>';
import * as mod from 'https://unpkg.com/@evan/wasm@0.0.80/target/<mod>/<target>';

// example
import * as snappy from 'https://unpkg.com/@evan/wasm@0.0.80/target/snappy/deno.js';

snappy.compress(new Uint8Array(100));

License

MIT © Evan