pretty-bytes-cli

Convert bytes to a human readable string: 1337 → 1.34 kB

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
pretty-bytes-cli
6703.0.02 years ago8 years agoMinified + gzip package size for pretty-bytes-cli in KB

Readme

pretty-bytes-cli
Convert bytes to a human readable string: 13371.34 kB

Useful for displaying file sizes for humans.

Install

npm install --global pretty-bytes-cli

Usage

$ pretty-bytes --help

  Usage
    $ pretty-bytes <number>
    $ echo <number> | pretty-bytes

  Example
    $ pretty-bytes 1337
    1.34 kB

Related