Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antonk52/why-npm-i-so-long
Checks project's dependencies size AKA why npm install so long
https://github.com/antonk52/why-npm-i-so-long
dependencies javascript npm
Last synced: 4 days ago
JSON representation
Checks project's dependencies size AKA why npm install so long
- Host: GitHub
- URL: https://github.com/antonk52/why-npm-i-so-long
- Owner: antonk52
- Created: 2020-01-08T22:57:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T09:54:43.000Z (over 2 years ago)
- Last Synced: 2024-10-19T02:02:55.138Z (16 days ago)
- Topics: dependencies, javascript, npm
- Language: JavaScript
- Homepage: https://npm.im/why-npm-i-so-long
- Size: 9.77 KB
- Stars: 222
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# why-npm-i-so-long
Little utility to ease troubleshooting why installing npm dependencies takes too long.
## What is "publish size" vs "install size"?
The "publish size" is the size of the source code published to npm. This number is easy to detect and should be pretty small.
The "install size" is the size your hard drive will report after running npm install. This includes the package, all of the dependencies, and its dependency's dependencies...and so on.
## Use without installing
```sh
npx why-npm-i-so-long path/to/package.json
```## Installation
```sh
npm install --global why-npm-i-so-long
```## Usage
See install size of dependencies
```sh
why-npm-i-so-long path/to/package.json
```
See install size of devDependencies
```sh
why-npm-i-so-long path/to/package.json --dev
```## Acknowledgments
- [packagephobia](https://github.com/styfle/packagephobia)