Skip to content

AlbertoMonteiro/CompressedStaticFiles.Tools

 
 

Repository files navigation

CompressedStaticFiles.Tools

A CLI tool that allows to compress static assets using Brotli or GZip

Instalation

Nuget

dotnet tool install --global CompressedStaticFiles.Tools

Usage

Description:
  A CLI tool that allows to compress static assets using Brotli or GZip

Usage:
  CompressedStaticFiles.Tools [<search_pattern1 search_pattern2 ...>...] [options]

Arguments:
  <search_pattern1 search_pattern2 ...>

Options:
  -w, --workdir <workdir>  Use directory relative to CWD [default: current directory]
  -gz, --gzip              Compress to GZip
  -br, --brotli            Compress to GZip
  --batch <batch>          Number of compressions to execute simultaneously [default: 1]
  --version                Show version information
  -?, -h, --help           Show help and usage information

Example: Compress all files in current directory recursively.

dotnet-compress *.* -br -gz

About

A CLI tool that allows to compress static assets using Brotli or GZip to be served by CompressedStaticFiles middleware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%