sizof

Check the size of files and folders from the CLI

Usage no npm install needed!

<script type="module">
  import sizof from 'https://cdn.skypack.dev/sizof';
</script>

README

Sizof

Check the size of files and folders from the CLI

Accepts paths and glob patterns.

sizof animation

Install

$ npm install --dev sizof

or

$ npm install --global sizof

Usage

$ sizof --help

  Usage
    $ sizof <path|glob> [...]

  Examples
    $ sizof bundler.js
    $ sizof '*.js' '!*.min.js'

  Options
    --json -j     Output the result as JSON

Tip

Add script in your package.json to check size of build folder.

"scripts": {
  "size": "sizof dist/*.min.*"
}

License

MIT © Gabriel Nobrega