Comparing version 2.2.1 to 2.2.2
@@ -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'); |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89
27351
Updatedminiget@^4.2.1