1.3.7 • Published 4 years ago

humanize-data v1.3.7

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

humanize-data

Converts bytes to human readable format: 7338 → 7.17 KB

Installation

npm install humanize-data

Example

var humanizeData = require('humanize-data');
humanizeData(7378668345); //=> "6.87 GB"

Additional Options

By default, it humanize the bytes by 1024 multiplier. If you want to use a different multiplier such as 1000, you can use following code:

var humanizeData = require('humanize-data');
humanizeData(7378668345, { multiplier: 1000 }); //=> "7.38 GB"

Authors

  • Sprout Matrix - Enthusiast Developers - Website

License

This project is licensed under the MIT License.

Acknowledgments

  • JavaScript - The Awesome Language
1.3.7

4 years ago

1.3.3

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago