1.0.1 • Published 7 months ago
@boywithkeyboard/brotli v1.0.1
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)