Skip to content

About

🔢 Bytes formatter module from the Glize library.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

29 Commits

Folders and files

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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages