How can I check the size of npm packages before downloading?
Is there an online utility or tool that helps me find out the exact size of node packages before downloading or installing them, or is there a way to check the size of the git repos so I can check the size of the package from the git repository
+3
sbs
source
to share
1 answer
I have created a tool that does this. It's called npm-download-size . A cli version is also available .
Just enter the package name and Go !:
Analyzed by webpack:
The cli tool can be installed with
npm i -g download-size
And used like this:
$ download-size lodash
lodash@4.17.4: 303.39 KiB
Below is a demo of asciinema in cli tool.
0
arve0
source
to share