0.0.1 • Published 8 years ago

youtube-video-status v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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);
});