{"repo":"AdrieanKhisbe/bundle-phobia-cli","free":true,"listed":false,"github":"https://github.com/AdrieanKhisbe/bundle-phobia-cli","clone":"git clone https://github.com/AdrieanKhisbe/bundle-phobia-cli.git","description":"📦 Cli for the node BundlePhobia Service 😱","language":"JavaScript","stars":191,"topics":["npm","bundlephobia","cli","hacktoberfest"],"license":"MIT","category":"cli-tools","readme_excerpt":"bundle-phobia-cli Cli for the node BundlePhobia Service About 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. Installation Just use npm install -g bundle-phobia-cli and you're good to go! Usage Once installed you will have access a single executable bundle-phobia (aliased to bundle-phobia-cli for npx usage ), with two commands: - stats to query package size. This is the default command, just invoke it with a list of package names and some options. - install : to conditionally install package if weight constraint are respected. This is a wrapper on npm install Note that you can specify a version along with the package range such as an instance exact version lodash@4.12.0 or range version ora@^3.0.0 . Examples Detailed Usage bundle-phobia Some option are available to control what stats are outputed by bundle-phobia . By default an humain friendly output is provided, otherwise you can have a json output with the --json flag. In case you need just the size (or gzip) in a script, you can use the --[gzip]-size flag. To control the packages to be queried, you can either provide them as an argument list, or you can refer a package.json file with the --package option. This would read the packages as dependencies . You can also provide a folder to -p (including . ). This would look for package.json in that folder. Options Summary bundle-phobia install bundle-phobia install offer three kind of flags: - flag","default_branch":null,"files":null,"tree":[],"storefront":"/r/AdrieanKhisbe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AdrieanKhisbe/bundle-phobia-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}