youtube-embed
v1.0.0
Published
Convert YouTube video url to url for embedding
Downloads
243
Readme
YouTube embed maker
Convert YouTube video url to url for embedding.
Usage
const youtubeEmbed = require('youtube-embed')
const embed = youtubeEmbed('https://www.youtube.com/watch?v=98_ZSZVTbgo')
const html = `<iframe width="600" height="380" src="${embed}" frameborder="0"></iframe>`
License
MIT