JSPM

video-time-parser

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q34998F
  • License MIT

video-time-parser is ued to parse time in web viedo.

Package Exports

  • video-time-parser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (video-time-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

video-time-parser npm versionBuild Status

Install

$ npm install video-time-parser

Usage

const parser = require("video-time-parser");

time = parser("1:23:24");

//time.hours == 1
//time.minutes == 23
//time.seconds == 24
//time.duration == 5004

API

parser(input, options?)

input

Type: string

options

Type: object

return

Type: object

{
    hours: <number>
    minutes:<number>
    seconds:<number>
    duration:<number>
}