Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grimmbraten/bundlephobia-cli
Analyze npm package sizes from the comfort of your cli
https://github.com/grimmbraten/bundlephobia-cli
bundlephobia node npm package terminal yarn
Last synced: 27 days ago
JSON representation
Analyze npm package sizes from the comfort of your cli
- Host: GitHub
- URL: https://github.com/grimmbraten/bundlephobia-cli
- Owner: grimmbraten
- License: mit
- Created: 2021-03-29T20:12:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-30T08:52:54.000Z (over 3 years ago)
- Last Synced: 2024-10-12T12:06:23.929Z (about 1 month ago)
- Topics: bundlephobia, node, npm, package, terminal, yarn
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@grimmbraten/bundlephobia-cli
- Size: 126 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Access the incredible features provided by [Bundlephobia](https://bundlephobia.com/) from the comfort of your cli of choice.
## Installation
```bash
yarn global add @grimmbraten/bundlephobia-cli
``````bash
npm install -g @grimmbraten/bundlephobia-cli
```## Upgrade
```bash
yarn global upgrade @grimmbraten/bundlephobia-cli --latest
```For more information, please refer to the [yarn documentation](https://classic.yarnpkg.com/en/docs/cli/upgrade).
```bash
npm update -g @grimmbraten/bundlephobia-cli
```For more information, please refer to the [npm documentation](https://docs.npmjs.com/cli/v6/commands/npm-update).
## Usage
```bash
bp [flag]
```### Examples
```bash
bp react# ✔ [email protected]
# 6.9 kB minified
# 2.8 kB gzipped
``````bash
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
``````bash
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
```bash
yarn global remove @grimmbraten/bundlephobia-cli
``````bash
npm uninstall -g @grimmbraten/bundlephobia-cli
```