bytes-formatter
TypeScript icon, indicating that this package has built-in type declarations

21.6.12 • Public • Published

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.

Package Sidebar

Install

npm i bytes-formatter

Homepage

glize.js.org

Weekly Downloads

56,982

Version

21.6.12

License

Apache-2.0

Unpacked Size

14.5 kB

Total Files

5

Last publish

Collaborators

  • vpodk
  • krailo
  • lizapodk