0.4.1 • Published 26 days ago

tiny-file-size v0.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
26 days ago

tiny-file-size npm

CLI tool for calculating size of files on disk. Can optionally display sizes after gzip and brotli.

Install

npm install -g tiny-file-size

# or

yarn add -g tiny-file-size

# or

pnpm add -g tiny-file-size

Usage

file-size --gzip --brotli foo.js README.md example.json

Help

You can run file-size --help to get a help message:

Usage:
  file-size [options] [globs...]

Options:
  -h, --help                     Show help
  -g, --gzip                     Include gzip size in output
  -b, --brotli                   Include brotli size in output
      --total                    Include total size in output
      --json                     Print result as json
  -v, --version                  Print the current version and exit

Examples:
  # Show sizes of files foo.js and bar.json
  file-size foo.js bar.json

  # Include sizes after gzip and brotli
  file-size --gzip --brotli foo.js bar.json

  # Print output as JSON
  file-size --json foo.js bar.json
0.4.1

26 days ago

0.4.0

2 months ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago