1.0.1 • Published 9 years ago

youtube-thin-wrapper v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

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

1.0.1

9 years ago

1.0.0

9 years ago