diff --git a/mkbsd.js b/mkbsd.js index d02593a..62f6362 100644 --- a/mkbsd.js +++ b/mkbsd.js @@ -19,6 +19,10 @@ async function main() { if (!data) { throw new Error('⛔ JSON does not have a "data" property at its root.'); } + + const count = data ? Object.keys(data).length : 0; + console.info(`Found ${count} images..`); + const downloadDir = path.join(__dirname, 'downloads'); if (!fs.existsSync(downloadDir)) { fs.mkdirSync(downloadDir);