You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

pretty-ms-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pretty-ms-cli

Convert milliseconds to a human readable string: 1337000000 → 15d 11h 23m 20s

Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
49
188.24%
Maintainers
1
Weekly downloads
 
Created
Source

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
  • pretty-ms - API for this module

License

MIT © Sindre Sorhus

Keywords

cli-app

FAQs

Package last updated on 14 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts