Socket
Socket
Sign inDemoInstall

youtube-video

Package Overview
Dependencies
7
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "youtube-video",
"version": "0.0.3",
"version": "0.0.4",
"description": "Minimalistic API to play Youtube videos",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,3 +7,4 @@ ## youtube-video

youtubeVideo = require('youtube-video')
youtubeVideo('player', 'sl1Q6W0UzGk', {
youtubeVideo('sl1Q6W0UzGk', {
elementId: 'foobar',
width: 640,

@@ -30,6 +31,4 @@ height: 390,

### youtubeVideo(`video-id` or `video-url`, `options`, `onReady`)
### youtubeVideo(`video-id` or `video-url`, `onReady`)
Simply:
```js

@@ -41,3 +40,3 @@ youtubeVideo('https://www.youtube.com/watch?v=rfh4Mhp-a6U', function (error, playback) {

Or:
### youtubeVideo(`video-id` or `video-url`, `options`, `onReady`)

@@ -44,0 +43,0 @@ ```js

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc