6

Is there any online utility or tool that helps me to find out the exact size of node packages before downloading or installing them or is there any way to check the size of git repositories so that i can check the size of the package from its git repository

Amante Ninja
  • 647
  • 1
  • 6
  • 26
  • Possible duplicate of [How do I view the size of npm packages?](https://stackoverflow.com/questions/40642008/how-do-i-view-the-size-of-npm-packages) – Fabian Lauer Nov 18 '17 at 15:01

1 Answers1

6

I've created a tool that does this. It's called npm-download-size. A cli version is also available.

Just type a package name and Go!:

npm download size start page

Here is webpack analyzed:

download size of 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

Here is an asciinema demo of the cli tool.

arve0
  • 3,424
  • 26
  • 33