You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GitHub File Size shield allows a param for branch so a version tag can be supplied. This is useful since users can be viewing readme's from specific releases on github.com, so the size should reflect what they're actually downloading.
The same should apply to NPM Unpacked Size (but by version) because when packages are published, npmjs.com renders the README for that release, so if it contains this shield, it wrongly shows the size for latest package only, so user can end up browsing version history for an older release to download, for example:
... yet they all show the same unpacked size for all the releases, so it is misleading. They might be looking for an older version specifically for smallest unpacked size that provides the minimal feature set they actually require for their project.
This is also useful on github.com where there's no true unpacked size in sidebar like npmjs.com to correct the untrue shield info
The text was updated successfully, but these errors were encountered:
adamlui
changed the title
NPM Unpacked Size by version
Allow NPM Unpacked Size by version
Apr 1, 2024
The GitHub File Size shield allows a param for
branch
so a version tag can be supplied. This is useful since users can be viewing readme's from specific releases on github.com, so the size should reflect what they're actually downloading.The same should apply to NPM Unpacked Size (but by version) because when packages are published, npmjs.com renders the README for that release, so if it contains this shield, it wrongly shows the size for latest package only, so user can end up browsing version history for an older release to download, for example:
... yet they all show the same unpacked size for all the releases, so it is misleading. They might be looking for an older version specifically for smallest unpacked size that provides the minimal feature set they actually require for their project.
This is also useful on github.com where there's no true unpacked size in sidebar like npmjs.com to correct the untrue shield info
The text was updated successfully, but these errors were encountered: