Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (20 loc) · 454 Bytes

readme.md

File metadata and controls

29 lines (20 loc) · 454 Bytes

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)