JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q27228F
  • License MIT

Lightweight CLI tool to see the size of your package dependencies

Package Exports

  • weigh-packages
  • weigh-packages/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (weigh-packages) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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!