JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q27255F
  • 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

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 size (kB) size (%) files

Enjoy!