0.0.1 • Published 9 years ago
@joegesualdo/get-youtube-video-thumbnail-url-js v0.0.1
@joegesualdo/get-youtube-video-thumbnail-url-js 
Get the thumbnail image for a youtube video.
Install
$ npm install --save @joegesualdo/get-youtube-video-thumbnail-url-jsUsage
import getThumbnailUrl from '@joegesualdo/get-youtube-video-thumbnail-url-js';
getThumbnailUrl('wHkK6mbFUTk', 'xlarge');
//=> https://i.ytimg.com/vi/wHkK6mbFUTk/maxresdefault.jpgAPI
getYoutubeVideoThumbnailUrl(videoId, [size])
Get the image url of the thumbnail
| Name | Type | Description |
|---|---|---|
| videoId | String | The id of the youtube video |
| size | String | The image size you want. The options are small, medium, large, and xlarge |
Returns: String, the url of the thumbnail
import getThumbnailUrl from '@joegesualdo/get-youtube-video-thumbnail-url-js';
getThumbnailUrl('wHkK6mbFUTk', 'xlarge');
//=> https://i.ytimg.com/vi/wHkK6mbFUTk/maxresdefault.jpgTest
$ npm testBuild
$ npm run buildLicense
MIT © Joe Gesualdo
0.0.1
9 years ago