Noiseless Praying Mantis

    pico-ms

    1.1.1 • Public • Published

    pico-ms NPM version js-standard-style Dependency Status

    Incy wincy millisecond converter for days, hours, minutes, or seconds

    Install

    $ npm install --save pico-ms

    Usage

    const picoMs = require('pico-ms')
    picoMs('3600s') // 3600000
    picoMs('3600 sec') // 3600000
    picoMs('3600 seconds') // 3600000
    picoMs('60m') // 3600000
    picoMs('60 mins') // 3600000
    picoMs('60 minutes') // 3600000
    picoMs('1h') // 3600000
    picoMs('1hr') // 3600000
    picoMs('1 hour') // 3600000
    picoMs(`${1 / 24} days`) // 3600000
    picoMs(3600000) // 3600000
    picoMs('3600000') // 3600000

    API

    Takes human readable days, hour, minute, or second string and returns milliseconds

    const picoMs = require('pico-ms')(*hms|ms)

    • hms|ms [string|integer - required] (ex. '3600s', '60 minutes', '1 hr', 3600000)

    License

    MIT © Andrew Carpenter

    Install

    npm i pico-ms

    DownloadsWeekly Downloads

    5

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    4.45 kB

    Total Files

    5

    Last publish

    Collaborators

    • doesdev