Skip to content

🔢 Bytes formatter module from the Glize library.

License

Notifications You must be signed in to change notification settings

eliotelissa/bytes-formatter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bytes Formatter Tweet

Build Status License NPM version Website NPM downloads

Bytes formatter module from Glize library.

Usage

npm install bytes-formatter --save
import { formatBytes } from 'bytes-formatter';

/**
 * Formats given <code>bytes</code> to human friendly format.
 * @param {number} bytes The bytes to be formatted.
 * @return {string} The formatted bytes as string.
 */
console.log(formatBytes(1024)); // 1.0 KB

For more information please visit Glize project page.

About

🔢 Bytes formatter module from the Glize library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%