compression-stats-cli
A CLI tool to print gzip and brotli compression statistics for your files.
Last updated 4 months ago by rajasegar .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install compression-stats-cli 
SYNC missed versions from official npm registry.

compression-stats-cli

Build and Deploy Coverage Status semantic-release npm version

A CLI tool to print gzip and brotli compression statistics for your files.

Installation

npm i -g compression-stats-cli
npx compression-stats-cli 

Usage

csc <file/folder path>
csc .

Output

Compression statistics:
 - prism.css: 4.16 KB (1.52 KB gzipped) (1.25 KB brotli)
 - prism.js: 31.28 KB (9.83 KB gzipped) (8.66 KB brotli)

If you omit the second argument (file/folder path), it will try to collect the statistics info from the current directory.

Options

include

Include only the files with extensions specified. Just give the extensions separated by space without "."

csc . --include js css

Compression statistics:
 - prism.css: 4.16 KB (1.52 KB gzipped) (1.25 KB brotli)
 - prism.js: 31.28 KB (9.83 KB gzipped) (8.66 KB brotli)

exclude

Exclude the files with extensions specified. Just give the extensions separated by space without "."

csc . --exclude js txt

Compression statistics:
 - prism.css: 4.16 KB (1.52 KB gzipped) (1.25 KB brotli)

skip-brotli

Skip the Brotli stats information in the output

csc . --skip-brotli

Compression statistics:
 - prism.css: 4.16 KB (1.52 KB gzipped)
 - prism.js: 31.28 KB (9.83 KB gzipped)

skip-gzip

Skip the Gzip stats information in the output

csc . --skip-gzip

Compression statistics:
 - prism.css: 4.16 KB (1.25 KB brotli)
 - prism.js: 31.28 KB (8.66 KB brotli)

Help

Usage: csc [folder-path]

Options:
  --help               Show help                                       [boolean]
  --version            Show version number                             [boolean]
  --skip-brotli, --sb  Skip Brotli compression stats  [boolean] [default: false]
  --skip-gzip, --sg    Skip Gzip compression stats    [boolean] [default: false]
  --include, -i        Include these file extensions only                [array]
  --exclude, -x        Exclude these file extensions                     [array]

Current Tags

  • 1.2.2                                ...           latest (4 months ago)

5 Versions

  • 1.2.2                                ...           4 months ago
  • 1.2.1                                ...           4 months ago
  • 1.2.0                                ...           4 months ago
  • 1.1.0                                ...           4 months ago
  • 1.0.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (12)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |