https://github.com/chinanf-boy/packagephobia-cli
code: <packagephobia-cli> know the npm pkg size ✅
https://github.com/chinanf-boy/packagephobia-cli
cli pkg-size
Last synced: over 1 year ago
JSON representation
code: <packagephobia-cli> know the npm pkg size ✅
- Host: GitHub
- URL: https://github.com/chinanf-boy/packagephobia-cli
- Owner: chinanf-boy
- License: mit
- Created: 2018-08-24T13:47:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-18T11:48:22.000Z (about 7 years ago)
- Last Synced: 2025-03-17T17:04:13.771Z (over 1 year ago)
- Topics: cli, pkg-size
- Language: JavaScript
- Homepage:
- Size: 226 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# packagephobia-cli [](https://travis-ci.org/chinanf-boy/packagephobia-cli) [](https://packagephobia.now.sh/result?p=packagephobia-cli)
「 cli for [packagephobia](https://github.com/styfle/packagephobia) 」
## Install
```
npm i -g packagephobia-cli
```
> or
```
npx packagephobia-cli tap commander@2.15.0
```

## Usage
```
packagephobia-cli tap commander
```
```
✔ tap@12.0.1
Publish Size:108kB
Install Size:21.1MB
✔ commander@2.17.1
Publish Size:60.7kB
Install Size:60.7kB
```
### `-m` flag
Can show you the pkg markdown style with install size.
```bash
packagephobia-cli express -m
```
```
✔ express@4.16.4
Publish Size:202 kB
Install Size:1.54 MB
[](https://packagephobia.now.sh/result?p=express@4.16.4)
```
Like this: [](https://packagephobia.now.sh/result?p=express@4.16.4).
## cli
```
Usage: cli [options]
show pkg size
Options:
-v, --version output the version number
-D, --debug [debug] debug: boolean/string (default: false)
-m, --markdown show the markdown link
-h, --help output usage information
```
## concat
- [two-log-min](https://github.com/chinanf-boy/two-log) just two log with ora/debug
## License
MIT © [chinanf-boy](http://llever.com)