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

ytpl

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ytpl - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

0

lib/main.js

@@ -0,0 +0,0 @@ const UTIL = require('./utils.js');

@@ -0,0 +0,0 @@ const PATH = require('path');

@@ -0,0 +0,0 @@ const MINIGET = require('miniget');

4

package.json
{
"name": "ytpl",
"version": "2.2.1",
"version": "2.2.2",
"description": "Simple package to resolve YouTube playlists - no strings attached.",

@@ -46,3 +46,3 @@ "keywords": [

"dependencies": {
"miniget": "^4.2.0"
"miniget": "^4.2.1"
},

@@ -49,0 +49,0 @@ "devDependencies": {

@@ -17,6 +17,5 @@ # node-ytpl

```js
var ytpl = require('ytpl');
const ytpl = require('ytpl');
const playlist = await ytpl('UU_aEa8K-EOJ3D6gOs7HcyNg');
dosth(playlist);
```

@@ -53,10 +52,12 @@

```js
var ytpl = require('ytpl');
const ytpl = require('ytpl');
const playlist = await ytpl('UU_aEa8K-EOJ3D6gOs7HcyNg', { pages: 1 });
display(playlist.items);
const r2 = ytpl.continueReq(playlist.continuation);
display(r2.items);
const r3 = ytpl.continueReq(r2.continuation);
display(r3.items);
const firstResultBatch = await ytpl('UU_aEa8K-EOJ3D6gOs7HcyNg', { pages: 1 });
const secondResultBatch = ytpl.continueReq(firstResultBatch.continuation);
const thirdResultBatch = ytpl.continueReq(secondResultBatch.continuation);
// You can now use the .items property of all result batches e.g.:
console.log(firstResultBatch.items);
console.log(secondResultBatch.items);
console.log(thirdResultBatch.items);
```

@@ -63,0 +64,0 @@

@@ -0,0 +0,0 @@ declare module 'ytpl' {

Sorry, the diff of this file is not supported yet

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