youtube-duration-format
v0.2.0
Published
Format the duration returned by google youtube data api as human understandable
Downloads
1,426
Readme
youtube-duration-format
Format the duration returned by google youtube data api as human understandable
Install
$ npm install --save youtube-duration-format
Usage
var ytDurationFormat = require('youtube-duration-format');
var youtubeTime = "PT15M31S";
var duration = ytDurationFormat(youtubeTime);
console.log(duration);
// => 15:31