extended-parse-duration
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

EPD

Convert time formats to milliseconds (Extended version)

Examples

import parser from "extended-parse-duration";

parser("30s"); // 30000
parser("45 seconds"); // 45000
parser("00:25"); // 25000
parser(55); // 55000

Supports

  • Time with colon notation (dd:hh:mm:ss, hh:mm:ss, mm:ss, m:ss)
  • ms format.
  • Human readable format.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    1
  • 0.1.1
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i extended-parse-duration

Weekly Downloads

3

Version

0.2.0

License

MIT

Unpacked Size

4.59 kB

Total Files

5

Last publish

Collaborators

  • ray_1337