Skip to content

Commit

Permalink
Update example with current version
Browse files Browse the repository at this point in the history
  • Loading branch information
heidemn committed May 31, 2024
1 parent 1188902 commit 3a916c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ console.log(textDecoder.decode(decompressedData)); // Prints 'some input'

You can also load it from a CDN like so:
```javascript
let brotli = await import("https://unpkg.com/brotli-wasm@1.3.1/index.web.js?module").then(m => m.default);
const brotli = await import("https://unpkg.com/brotli-wasm@3.0.0/index.web.js?module").then(m => m.default);
```

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).
Expand Down

0 comments on commit 3a916c4

Please sign in to comment.