A lightweight CLI to quickly compress files using Brotli Compression algorithm.
npx brrr file.txt
Installation
Install the brrr
package using npm or yarn.
npm install --global brrr
yarn global add brrr
npx brrr [SEE USAGE BELOW]
Usage
Above will install brrr
as a command line utility.
$ brrr file.txt
$ brrr *.js -o OUT
$ brrr --stdin < INPUT > OUTPUT
$ cat INPUT.txt | brrr --stdin > OUTPUT
$ brrr input.txt --stdout
$ find INPUT_DIR -type f | xargs brrr -o OUT_DIR
You can replace brrr
above with brotli
to sound more professional (or if miss a few r in previous command — finding a good package name is difficult). That is, the following also works just as fine:
$ brotli file.txt
Run brotli -h
or see help.md for details.
License
MIT.