Skip to content

matiassingers/youtube-thumbnail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youtube-thumbnail Build Status Dependency Status

get thumbnail images for youtube videos

Install

$ npm install --save youtube-thumbnail

Usage

var youtubeThumbnail = require('youtube-thumbnail');

var thumbnail = youtubeThumbnail('https://www.youtube.com/watch?v=9bZkp7q19f0');

console.log(thumbnail);
// => { default: { url: 'http://img.youtube.com/vi/9bZkp7q19f0/default.jpg', ...

CLI

$ npm install --global youtube-thumbnail
$ youtube-thumbnail --help

  Example
    youtube-thumbnail https://www.youtube.com/watch?v=9bZkp7q19f0
       =>  http://img.youtube.com/vi/9bZkp7q19f0/default.jpg

    youtube-thumbnail https://www.youtube.com/watch?v=9bZkp7q19f0 --high --open
       =>  http://img.youtube.com/vi/9bZkp7q19f0/hqdefault.jpg

  Options
    --open
          opens the thumbnail image in your browser

    --medium
          returns the medium resolution thumbnail

    --high
          returns the high resolution thumbnail

License

MIT © Matias Singers

About

get thumbnail images for youtube videos

Resources

License

Stars

Watchers

Forks

Packages

No packages published