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

boywithkeyboard-archive/brotli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)