Extra Credit

byte-size

Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.

$npm install byte-size

Official docs outline

Extra Credit builds an outline of byte-size's docs the first time your work uses it. Until then, start at the official documentation.

All 9,484