youtube-embed

1.0.0 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i youtube-embed

Weekly Downloads

98

Version

1.0.0

License

MIT

Unpacked Size

2.52 kB

Total Files

4

Last publish

Collaborators

  • pazzavlad