weigh-packages

1.0.5 • Public • Published

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 Linux

Then run the script in any folder with a package.json!

cd my-project && weigh-packages

By 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!

Package Sidebar

Install

npm i weigh-packages

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

4.87 kB

Total Files

3

Last publish

Collaborators

  • tinkoh