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

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

pretty-ms-cli

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] [--seconds-decimal-digits=<number>]
    echo <milliseconds> | pretty-ms

  Options
    -c, --compact                 Only show the first part
    -v, --verbose                 Use full-length units
    -d, --seconds-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 --seconds-decimal-digits=4
    1.3370s
  • pretty-ms - API for this package

Keywords

cli-app

FAQs

Package last updated on 02 May 2024

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