Skip to content

sugarshin/youtube-thin-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youtube-thin-wrapper

Build Status GitHub version License

a YouTube iframe API thinness wrapper

Getting started

npm i youtube-thin-wrapper

Usage

import YouTube from 'youtube-thin-wrapper';

YouTube.autoLoadYouTubeAPI();

const youtube = new YouTube(id, opts);
youtube.create().then(player => {
  player.playVideo();
  // Can use other api methods and more...
});

Promise is required

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

© sugarshin