youtube-duration-format

Format the duration returned by google youtube data api as human understandable

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
youtube-duration-format
0.2.08 years ago8 years agoMinified + gzip package size for youtube-duration-format in KB

Readme

youtube-duration-format Build Status
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