Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 295 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 295 Bytes

common-youtube

simple wrapper over the YouTube iframe API

Installation

$ npm install common-youtube

Usage

var YouTube = require('common-youtube');
var player = new YouTube('id-of-iframe');

player.on('ready', function() {
  player.play();
});

License

MIT