@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');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.4.7
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.4.7
    5

Package Sidebar

Install

npm i @dnode/parse-duration

Weekly Downloads

5

Version

1.4.7

License

MIT

Last publish

Collaborators

  • sharaal