Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 644 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 644 Bytes

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/[email protected]/target/<mod>/<target>';

// example
import * as snappy from 'https://unpkg.com/@evan/[email protected]/target/snappy/deno.js';

snappy.compress(new Uint8Array(100));

License

MIT © Evan