video-time-parser
v0.2.0
Published
video-time-parser is ued to parse time in web viedo.
Downloads
3
Readme
video-time-parser
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>
}