wasm_br 0.12.1

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