@grimmbraten/bundlephobia-cli
v3.2.1
Published
Know the "cost" of adding a npm packages to your bundle from the comfort of your terminal
Downloads
6
Readme
Access the incredible features provided by Bundlephobia from the comfort of your cli of choice.
Installation
yarn global add @grimmbraten/bundlephobia-cli
npm install -g @grimmbraten/bundlephobia-cli
Upgrade
yarn global upgrade @grimmbraten/bundlephobia-cli --latest
For more information, please refer to the yarn documentation.
npm update -g @grimmbraten/bundlephobia-cli
For more information, please refer to the npm documentation.
Usage
bp <package> [flag]
Examples
bp react
# ✔ [email protected]
# 6.9 kB minified
# 2.8 kB gzipped
bp webpack --dependencies
# ✔ [email protected]
# webpack-sources: 28.6 kB
# schema-utils: 22.3 kB
# tapable: 0.7 kB
# neo-async: 38.6 kB
# watchpack: 7.0 kB
# json-parse-better-errors: 0.7 kB
# acorn: 125.9 kB
# graceful-fs: 6.0 kB
# enhanced-resolve: 9.9 kB
# glob-to-regexp: 1.0 kB
# package-build-stats: 0.5 kB
# loader-runner: 9.2 kB
# terser-webpack-plugin: 0.1 kB
# chrome-trace-event: 2.3 kB
# @webassemblyjs/ast: 48.0 kB
# @webassemblyjs/helper-numbers: 2.1 kB
# @webassemblyjs/floating-point-hex-parser: 0.8 kB
# source-map: 0.2 kB
# @webassemblyjs/wasm-parser: 36.0 kB
# source-list-map: 0.3 kB
bp colors --raw
# ✔ [email protected]
# {
# assets: [ { gzip: 4139, name: 'main', size: 9547, type: 'js' } ],
# dependencyCount: 0,
# dependencySizes: [ { approximateSize: 12054, name: 'colors' } ],
# description: 'get colors in your node.js console',
# gzip: 4139,
# hasJSModule: false,
# hasJSNext: false,
# hasSideEffects: true,
# name: 'colors',
# repository: 'https://github.com/Marak/colors.js',
# scoped: false,
# size: 9547,
# version: '1.4.0'
# }
Uninstall
yarn global remove @grimmbraten/bundlephobia-cli
npm uninstall -g @grimmbraten/bundlephobia-cli