Skip to content
This repository has been archived by the owner on Jul 10, 2018. It is now read-only.

[Feature Request] Display package size #197

Open
coagmano opened this issue Jul 11, 2017 · 3 comments
Open

[Feature Request] Display package size #197

coagmano opened this issue Jul 11, 2017 · 3 comments

Comments

@coagmano
Copy link

It would be great to have an indication of package size when browsing npm to select a package.
Sometimes a feature can be achieved in a few kb, but you end up with a huge package that goes unused.

One particularly bad example is the jQuery-UI package which comes in at 16mb, and I didn't realise till I was looking through the folder to import just the component I needed. (They bundle many, many versions of jQuery in the package for some stupid reason)

@coagmano coagmano changed the title Request: Display package size [Feature request] Display package size Jul 11, 2017
@coagmano coagmano changed the title [Feature request] Display package size [Feature Request] Display package size Jul 11, 2017
@styfle
Copy link

styfle commented Mar 22, 2018

I am considering writing a tool to do this.
There is already https://bundlephobia.com which is great for front end dependencies that get bundled with webpack but it doesn't tell you about the size of dev dependencies such as test frameworks.

@coagmano
Copy link
Author

There's also a great plugin for VSCode that does this:
https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost

@styfle
Copy link

styfle commented Apr 8, 2018

Here's what I came up with: https://github.com/styfle/packagephobia

You can see that jquery-ui is 13 MB before you install it 😃

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants