pretty-ms-cli
Convert milliseconds to a human readable string: 1337000000 → 15d 11h 23m 20s
Last updated 5 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pretty-ms-cli 
SYNC missed versions from official npm registry.

pretty-ms-cli Build Status

Convert milliseconds to a human readable string: 133700000015d 11h 23m 20s

Install

$ npm install --global pretty-ms-cli

Usage

$ pretty-ms --help

  Usage
    $ pretty-ms <milliseconds> [--compact] [--verbose] [--sec-decimal-digits=<number>]
    echo <milliseconds> | pretty-ms

  Options
    -c, --compact               Only show the first part
    -v, --verbose               Use full-length units
    -d, --sec-decimal-digits    Number of digits to appear after the seconds decimal point

  Examples
    $ pretty-ms 1337
    1.3s
    $ pretty-ms 1337 --verbose
    1.3 seconds
    $ pretty-ms 1337 --compact
    ~1s
    $ pretty-ms 1337 --sec-decimal-digits=4
    1.3370s

Related

License

MIT © Sindre Sorhus

Current Tags

  • 2.0.0                                ...           latest (5 years ago)

2 Versions

  • 2.0.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |