Home

Awesome

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