Sizof
Check the size of files and folders from the CLI
Accepts paths and glob patterns.
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