JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15023
  • Score
    100M100P100Q159951F
  • License Apache-2.0

Bytes formatter module from Glize library.

Package Exports

  • bytes-formatter

Readme

Bytes Formatter Tweet

Build Status License NPM version Website

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.