@micmac/youtube
Advanced tools
Comparing version 4.0.4 to 4.0.5
16
main.js
@@ -112,3 +112,3 @@ // fonction searchVideos retourne les 10 dernières videos de la chaine beerus | ||
url: videoData.data.data.items[0].snippet.thumbnails.medium.url, | ||
dest: '/public/img/thumbnails' | ||
dest: '/public/assets/img/thumbnails' | ||
} | ||
@@ -213,9 +213,9 @@ downloadIMG(); | ||
}; | ||
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 asyncForEach (array, callback) { | ||
for (let index = 0; | ||
index < array.length; | ||
index ++) | ||
{ | ||
await callback (array[index], index, array); | ||
} | ||
} |
{ | ||
"name": "@micmac/youtube", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"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
8507