1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 21:42:08 +02:00
tldr/pages/common/brotli.md

815 B

brotli

Compress/uncompress files with Brotli compression. More information: https://manned.org/brotli.

  • Compress a file, creating a compressed version next to the file:

brotli {{path/to/file}}

  • Decompress a file, creating an uncompressed version next to the file:

brotli {{[-d|--decompress]}} {{path/to/file.br}}

  • Compress a file specifying the output filename:

brotli {{path/to/file}} {{[-o|--output]}} {{path/to/compressed_output_file.br}}

  • Decompress a Brotli file specifying the output filename:

brotli {{[-d|--decompress]}} {{path/to/compressed_file.br}} {{[-o|--output]}} {{path/to/output_file}}

  • Specify the compression quality (1=fastest (worst), 11=slowest (best)):

brotli {{[-q|--quality]}} {{11}} {{path/to/file}} {{[-o|--output]}} {{path/to/compressed_output_file.br}}