Cli for the node BundlePhobia Service
BundlePhobia is a tool to help you find the cost of adding a npm package to your bundle. It enables you to query package sizes.
Just use npm install -g bundle-phobia-cli
and you're good to go
For now, just bundle-phobia <package-name>
and you will get it's stats.
Usage: bundle-phobia <package-name>
Options:
--range, -r Get a range of version (0 for all, 8 by default) [number]
--json, -j Output json rather than a formater string [boolean]
--size, -s Output just the module size [boolean]
--gzip-size, -g Output just the module gzip size [boolean]
--dependencies, -d Output just thenumber of dependencies [boolean]
-h, --help Show help [boolean]