@boywithkeyboard/brotli
v1.0.1
Published
A pure JavaScript implementation of Brotli.
Downloads
3
Readme
brotli
[!NOTE]
This library uses google/brotli's JavaScript implementation under the hood.
Setup
Deno
import { decode } from 'https://den.ooo/brotli'
Node.js
npm i @boywithkeyboard/brotli
import { decode } from '@boywithkeyboard/brotli'
Usage
const decodedBuffer = decode(encodedBuffer)
const decodedText = new TextDecoder().decode(buffer)