1.0.5 ⢠Published 4 years ago
weigh-packages v1.0.5
weigh-packages šļø
A lightweight CLI tool to see the size of your package dependencies
Built for Node.js
To install, run:
# npm
npm i -g weigh-packages
# or, if you prefer yarn
yarn global add weigh-packages
# remember to use sudo on LinuxThen run the script in any folder with a package.json!
cd my-project && weigh-packagesBy default it sorts in the order of your package.json, which should be alphabetical. You can add --size or --files as a flag to sort by package size or file count, respectively:
weigh-packages --sizeš
| name | version | size (kB) | size (%) | files | dependencies | license |
|---|---|---|---|---|---|---|
| node-fetch | 3.2.3 | 105.816 | 38 | 17 | 3 | MIT |
| cli-spinner | 0.2.10 | 85.107 | 31 | 7 | 0 | MIT |
| chalk | 5.0.1 | 41.336 | 15 | 12 | 0 | MIT |
| cli-table3 | 0.6.1 | 41.117 | 15 | 9 | 2 | MIT |
| total | 273.376 | 100 | 45 | 5 |
Enjoy!