egoist / package-size

Get the bundle size of an npm package.
MIT License
424 stars 26 forks source link

What is the size of package-size? #10

Closed Hum4n01d closed 7 years ago

Hum4n01d commented 7 years ago

This may sound silly, but I’m on cell data and I’d like to know the size of the package-size repository before I use it! :joy: (If I missed it somewhere in the repository, sorry about that)

egoist commented 7 years ago

The size of package-size actually doesn't really matter since it's node lib, the main use case is to get size of browser libs.

Hum4n01d commented 7 years ago

:(

egoist commented 7 years ago

you can simply do du -sh node_modules for node modules.

arve0 commented 7 years ago
$ du -h -d 1 node_modules/package-size
 12K    node_modules/package-size/lib
 42M    node_modules/package-size/node_modules
 42M    node_modules/package-size
arve0 commented 7 years ago

My previous comment does not reflect download size, as packages are gzipped in a tarball. I've created a tool to get download size of npm packages:

$ download-size package-size
7.71 MiB
styfle commented 6 years ago

@Hum4n01d @arve0 Package Phobia should solve your problem

Click: install size