-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
Parse package.json #5
Comments
actually you effectively have an endpoint of /package after forking your code. I'd like to piggy back on this and create a node command line utility that parses your package.json and gives you these values of the combined size of all your packages. If I submit for example react react-redux (which depends on react) and add them up, is that an accurate number for how big the both of them are in your project? |
Doing so has a couple of challenges -
I'd be happy to know if you have workarounds, or would want to work on either. |
https://github.com/shaun-sweet/package-weight here's what I made so far. I do think your first point could be an issue but perhaps I could put in an exclude flag into the utility. I guess your server would need to cache that info. Last I saw though it seemed you were using firebase to cache to avoid having to re zip and calc stuff? |
Hey @shaun-sweet. Despite of the caching, I don't think the heroku instance would be able to bear the load of multiple people scanning their I don't think exposing this as an API is a good idea atm with the current infrastructure. |
We now support scanning |
Any thoughts on having it parse an entire package.json file and return the combined results? Perhaps even an API end point to pass in package names directly not using this interface in order to calculate that ourselves?
The text was updated successfully, but these errors were encountered: