Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

youtube-iframe

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youtube-iframe

Wrapper for dynamically loading the YouTube iframe api script

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

youtube-iframe

Wrapper for dynamically loading the YouTube iframe api script

npm install youtube-iframe

Can be used with browserify or global window.YouTubeIframeLoader.

var YouTubeIframeLoader = require('youtube-iframe');

YouTubeIframeLoader.load(function(YT) {
	new YT.Player('player1', {
		height: '390',
		width: '640',
		videoId: 'M7lc1UVf-VE'
	});
});

YouTubeIframeLoader.load(function(YT) {
	new YT.Player('player2', {
		height: '390',
		width: '640',
		videoId: 'dQw4w9WgXcQ'
	});
});

Changelog

1.0.3

  • Typescript support (#3)

1.0.2

  • Always call the callback asynchronously (#2)
  • Fixed a bug with infinite recursion when nesting load() calls

1.0.1

  • Always use https instead of the protocol-relative URL (#1)

Keywords

FAQs

Package last updated on 03 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc