Skip to content

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

Notifications You must be signed in to change notification settings

nil1511/youtube-duration-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published