You are writing awesome code in say Node.js, Angular, React or in any of the JavaScript Framework. You have some number as Bytes, that can be a size of file, Speed of Internet or Data Uploaded or Downloaded by the user.

You wanted to show those Number of Bytes in Human Readable Pretty Format. Example,

7338 → 7.17 KB

We’ve got you covered. We’ve published an NPM Package for the same to achieve this with extreme simplicity.

Name of the NPM Package is: humanize-data .

“Humanize Data” Package is written by Enthusiast Developer at Sprout Matrix.

It is very easy…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store