egoist / package-size

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

Web Interface #15

Open styfle opened 6 years ago

styfle commented 6 years ago

Do you have a web interface for package-size?

I have a similar tool called Package Phobia which shows a single package's history over time.

There's also Bundle Phobia which shows the bundle size over time.

However I haven't added any comparison views yet.

egoist commented 6 years ago

LOL didn't realize you're the creator of of package phobia, I literally just tweeted about it today 😂 https://twitter.com/_egoistlily/status/1001686624797937669

Since there're already the tool you made and Bundle Phobia, I doubt that I will add a web interface into this module. 🤔

styfle commented 6 years ago

Nice! 😄

You might also like to read the section about How is Package Phobia different? which links to a bunch of similar tools (including this one).

It seems many people are working in this similar space, it would be nice to collaborate our efforts 👍

transitive-bullshit commented 6 years ago

If I'm understanding everything correctly, package-size is most analogous to bundlephobia.

Are there any important differences between the two that are worth pointing out?

I only ask because I'm definitely getting slightly different size outputs between the two when AFAIK they should be calculating roughly the same thing.

For example:

$ bundle-phobia ow
ow (0.4.0) has 0 dependencies for a weight of 56661B (15233B gzipped)

$ package-size ow
  package   size       minified  gzipped
  ow@0.4.0  119.31 KB  65.69 KB  17.5 KB

Thanks!

transitive-bullshit commented 6 years ago

Possibly answering my own question.. is it just due to slightly different webpack configs and babel-preset-env options?