npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

brotli-max

0.1.4

@mikeal

npmHomeRepoSnykSocket
Downloads:6
$ npm install brotli-max
DailyWeeklyMonthlyYearly

brotli-max

Compress w/ maximum brotli settings

brotli-max <input> [output]

Parse schema file 

Positionals:
  input   Input file
  output  Output file, defaults to input + '.br'

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number       

In JS:

const max = require('brotli-max')

await max(inputFilename, outputFilename)
await max(inputBuffer, outputFilename)

Note that there is no streaming API because knowing the entire file size is one of the ways we maximize the compression efficiency of Brotli.