@dnode/parse-duration

    1.4.7 • Public • Published

    dependencies | 1 | 1

    DEPRECATED

    In favor of @dnode/duration

    Usage

    1 hour 20 minutes in milliseconds

    const ms = require('@dnode/parse-duration')('1h 20m');

    1 hour 20 minutes in seconds (with second parameter)

    const s = require('@dnode/parse-duration')('1h 20m', 's');

    1 hour 20 minutes in seconds (with "in" keyword)

    const s = require('@dnode/parse-duration')('1h 20m in s');

    Keywords

    none

    Install

    npm i @dnode/parse-duration

    DownloadsWeekly Downloads

    9

    Version

    1.4.7

    License

    MIT

    Last publish

    Collaborators

    • avatar