Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jkiimm/youtube-video-status
Gotcha YouTube video status without creaking
https://github.com/jkiimm/youtube-video-status
Last synced: about 2 months ago
JSON representation
Gotcha YouTube video status without creaking
- Host: GitHub
- URL: https://github.com/jkiimm/youtube-video-status
- Owner: jkiimm
- License: mit
- Created: 2016-04-21T16:31:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-21T17:01:22.000Z (over 8 years ago)
- Last Synced: 2024-04-25T12:03:09.010Z (9 months ago)
- Language: JavaScript
- Size: 64.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# youtube-video-status
gotcha youtube video status without creaking
[![Travis build status](http://img.shields.io/travis/jkiimm/youtube-video-status.svg?style=flat)](https://travis-ci.org/jkiimm/youtube-video-status)
[![Code Climate](https://codeclimate.com/github/jkiimm/youtube-video-status/badges/gpa.svg)](https://codeclimate.com/github/jkiimm/youtube-video-status)
[![Test Coverage](https://codeclimate.com/github/jkiimm/youtube-video-status/badges/coverage.svg)](https://codeclimate.com/github/jkiimm/youtube-video-status)
[![Dependency Status](https://david-dm.org/jkiimm/youtube-video-status.svg)](https://david-dm.org/jkiimm/youtube-video-status)
[![devDependency Status](https://david-dm.org/jkiimm/youtube-video-status/dev-status.svg)](https://david-dm.org/jkiimm/youtube-video-status#info=devDependencies)## 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
```sh
$ npm install youtube-video-status --save
```## Example
### ES5
```javascript
var video = require('youtube-video-status');video.status('VIDEO_ID').then(function (status) {
var igotcha = status;
console.log(igotcha);
});
```### ES6
```javascript
import video from 'youtube-video-status';video.status('VIDEO_ID').then((status) => {
const igotcha = status;
console.log(igotcha);
});
```