@micmac/youtube
Advanced tools
Comparing version 4.0.2 to 4.0.4
19
main.js
@@ -114,3 +114,3 @@ // fonction searchVideos retourne les 10 dernières videos de la chaine beerus | ||
} | ||
downloadIMG(options) | ||
downloadIMG(); | ||
// console.log ('resultDataBuffer : '); | ||
@@ -205,12 +205,13 @@ // console.log (resultDataBuffer); | ||
; | ||
async function asyncForEach(array, callback) { | ||
for (let index = 0; | ||
index < array.length; | ||
index++) { | ||
await callback(array[index], index, array); | ||
async function downloadIMG() { | ||
try { | ||
const { filename, image } = await download.image(options) | ||
console.log(filename) // => /path/to/dest/image.jpg | ||
} catch (e) { | ||
console.error(e) | ||
} | ||
}; | ||
async function downloadIMG(_options) { | ||
}; | ||
async function downloadIMG() { | ||
try { | ||
const { filename, image } = await download.image(_options) | ||
const { filename, image } = await download.image(options) | ||
console.log(filename) // => /path/to/dest/image.jpg | ||
@@ -217,0 +218,0 @@ } catch (e) { |
{ | ||
"name": "@micmac/youtube", | ||
"version": "4.0.2", | ||
"version": "4.0.4", | ||
"description": "utilisation api youtube data", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
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
8509
213