youtube-thin-wrapper

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i youtube-thin-wrapper

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • sugarshin