-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a website #50
Comments
It probably doesn't fit in this repo but a related parallel project What are the numbers that you'd like to show?
|
I created pastelsky/bundlephobia#40 which might be a good place to put this feature if it is not out of scope.
I think the numbers should show the size on disk. mkdir ava-example
cd ava-example
npm init -y
npm install --save ava
du -sh This prints 24 M Note, I add the suffix |
I was going to say something similar: pastelsky/bundlephobia#40 (comment) the motive of bundlephobia is different but it has all of the code and infra required for this, maybe a fork makes the most sense 😄 |
@siddharthkp I would like to import this package and use it on the server but it doesn't seem to work.
I thought it might be because of a missing |
I started work in this repo if anyone is interested in following: |
Oh yeah, it's because it assumes CLI You can pull the functionality into a function and export that, should work |
@siddharthkp I think that it would require quite a bit of refactoring to The way The tool I want to build is more like bundlephobia in that you get the cost/size via the web interface, before you install anything. So I think I'm going to develop this as a separate project and think of a different name. Unless you would like to collaborate and share the same name. |
Here's what I came up with: https://github.com/styfle/packagephobia |
This is so cool! |
Thanks for the kind words! Keep up the great work on cost-of-modules, it's an excellent tool! 👍 |
Have you thought about creating a website so that someone could link to the report to show the cost of a module?
For example, bundlephobia shows you the webpack size if you included the module. See Example.
It would be great to do something like cost-of-modules.com/[email protected] and see that the result is 24 MB.
The text was updated successfully, but these errors were encountered: