Skip to content
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

Calculate the size based on the actual package used by optionalDependencies #38

Open
yisibl opened this issue Mar 10, 2022 · 2 comments

Comments

@yisibl
Copy link

yisibl commented Mar 10, 2022

Nowadays there are a lot of packages that use optionalDependencies to distribute packages for different OS and CPUs and show their total size in the statistics, which is inaccurate because the user only needs to download one of the packages when actually downloading.

https://arve0.github.io/npm-download-size/#[email protected]

image

Using @resvg/resvg-js as an example, I would like to show only the dimensions in macOS for example, can I add a select to the page?

@arve0
Copy link
Owner

arve0 commented Jun 2, 2023

I’m not currently developing such features, but give it a go yourself 😊

@styfle
Copy link

styfle commented Jun 3, 2023

You can try https://packagephobia.com although it will only install the gnu linux x64 optionalDependency (not macOS)

For example: https://packagephobia.com/result?p=@resvg/[email protected]

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

No branches or pull requests

3 participants