Skip to content

jkiimm/youtube-video-status

Repository files navigation

youtube-video-status

gotcha youtube video status without creaking

Travis build status Code Climate Test Coverage Dependency Status devDependency Status

Note

  • public (defined by YouTube) -> accessible
  • unlisted (defined by YouTube) -> accessible
  • private (defined by YouTube) -> private
  • deleted anyway -> unavailable
  • not exist -> unavailable
  • else -> unknown

Installation

$ npm install youtube-video-status --save

Example

ES5

var video = require('youtube-video-status');

video.status('VIDEO_ID').then(function (status) {
  var igotcha = status;
  console.log(igotcha);
});

ES6

import video from 'youtube-video-status';

video.status('VIDEO_ID').then((status) => {
  const igotcha = status;
  console.log(igotcha);
});

About

Gotcha YouTube video status without creaking

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published