wasm_zstd 0.1.0

esm modulesr for zstd compression and/or decompression, with sync and async (worker) versions
Documentation
1
2
3
4
5
6
7
8
importScripts('./zstd_for_importScripts.js');
(async()=>{
  const {zstd,unzstd}=await fns;
  onmessage=async msg=>{
    postMessage(msg.data.level===undefined?unzstd(msg.data):zstd(msg.data.bytes,msg.data.level));
  }
  postMessage('ready');
})();