node_modules (with --installed).
Features
๐ฆ
Analyze install size of any npm package
๐๏ธ
Supports local paths & monorepo workspaces
๐ณ
Dependency tree, minified/gzipped, file type breakdown
โก
Compare, history, badge, and interactive modes
๐
JSON, CSV, Markdown, and human-readable output
๐
Programmatic API for Node.js
โ๏ธ
Config file support
๐
No install required: npx npm-install-size <package>
๐พ
Show actual installed size of node_modules or a specific package (--installed)
Quick Usage
$ npx npm-install-size react express lodash
๐ฆ react@19.1.0: 167 kB
๐ฆ express@5.1.0: 197 kB
๐ฆ lodash@4.17.21: 1.41 MB
$ npx npm-install-size --installed
โ ๏ธ This is the actual installed size on disk, including all dependencies. It may be much larger than the published tarball size.
๐ฆ node_modules: 132 MB
$ npx npm-install-size --installed express
โ ๏ธ This is the actual installed size on disk, including all dependencies. It may be much larger than the published tarball size.
๐ฆ node_modules/express: 1.2 MB
See full usage & docs on GitHub.
FAQ
Q: Does this show the size after install?
A: By default, it shows the size of the published package tarball, not the full
A: By default, it shows the size of the published package tarball, not the full
node_modules disk usage. But you can use --installed to see the actual installed size of node_modules or a specific package.
Q: Can I see the size after install?
A: Yes! Use
A: Yes! Use
--installed to see the actual disk usage of node_modules or a specific package.