You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(textDecoder.decode(decompressedData)); // Prints 'some input'
62
62
```
63
63
64
+
You can also load it from a CDN like so:
65
+
```javascript
66
+
let brotli =awaitimport("https://unpkg.com/brotli-wasm@1.3.1/index.web.js?module").then(m=>m.default);
67
+
```
68
+
64
69
The package itself has no runtime dependencies, although if you prefer using `Buffer` over using `TextEncoder/TextDecoder` you may want a [browser Buffer polyfill](https://www.npmjs.com/package/browserify-zlib).
0 commit comments