Skip to content

🤖 Display bytes in a human readable format: KB, MB, GB, TB, PB, EB, ZB, YB

License

Notifications You must be signed in to change notification settings

davidgatti/byteman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Byteman

Display bytes in a human readable format: KB, MB, GB, TB, PB, EB, ZB, YB

Byteman is short for "bytes to human" which is a tool to convert a number, normally the amount of bytes of something in to a human readable format. For example 1000 bytes will become 1KB. Helping you work with big number more easily, and also helping you user understand better what is going on.

Example

let byteman = require('byteman');

let human_form = byteman(10000);
let human_form_decima = byteman(10000, 2);

console.log(human_form)
console.log(human_form_decima)

Installation

$ npm install byteman -S

The End

If you enjoyed this project, please consider giving it a 🌟. And check out my GitHub account, where you'll find additional resources you might find useful or interesting.

Sponsor 🎊

This project is brought to you by 0x4447 LLC, a software company specializing in building custom solutions on top of AWS. Follow this link to learn more: https://0x4447.com. Alternatively, send an email to hello@0x4447.email.

About

🤖 Display bytes in a human readable format: KB, MB, GB, TB, PB, EB, ZB, YB

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published