@joegesualdo/get-youtube-video-thumbnail-url-js

0.0.1 • Public • Published

@joegesualdo/get-youtube-video-thumbnail-url-js Build Status

Get the thumbnail image for a youtube video.

Install

$ npm install --save @joegesualdo/get-youtube-video-thumbnail-url-js

Usage

import getThumbnailUrl from '@joegesualdo/get-youtube-video-thumbnail-url-js';

getThumbnailUrl('wHkK6mbFUTk', 'xlarge');
//=> https://i.ytimg.com/vi/wHkK6mbFUTk/maxresdefault.jpg

API

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.jpg

Test

$ npm test

Build

$ npm run build

License

MIT © Joe Gesualdo

Readme

Keywords

Package Sidebar

Install

npm i @joegesualdo/get-youtube-video-thumbnail-url-js

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • joegesualdo