Badgen.net: packagephobia badges trim decimal place

Created on 28 Dec 2018  路  4Comments  路  Source: badgen/badgen.net

The packagephobia badges are trimming a decimal place. While this may seem trivial, in certain contexts (as in displaying and comparing install sizes against multiple packages) the actual, unmodified size of the install is desired.

Example: https://packagephobia.now.sh/result?p=webpack-plugin-serve ~ 5.84MB

badge displays 5.8 MB.

I'd love to see the ability to display sizes as they come from packagephobia, unaltered.

Most helpful comment

Thanks for jumping on that so quickly!

All 4 comments

@styfle I created this issue in amio/badgen-service 馃槃

Hahahaha, I must have had a long day 馃槅
Sorry about the confusion...this is the correct place for the issue.
I'll delete my post 馃槄

Fix is landed now :D

Thanks for jumping on that so quickly!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tunnckoCore picture tunnckoCore  路  6Comments

tunnckoCore picture tunnckoCore  路  3Comments

tunnckoCore picture tunnckoCore  路  4Comments

tunnckoCore picture tunnckoCore  路  3Comments

diomed picture diomed  路  3Comments