From f4868b59461c3daf7964a8c593fee6c5c43353d7 Mon Sep 17 00:00:00 2001 From: Viet Huynh Date: Tue, 19 Sep 2023 01:32:01 +0700 Subject: [PATCH] log the lists to be used --- download_lists.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/download_lists.js b/download_lists.js index 34e4413..3f04054 100644 --- a/download_lists.js +++ b/download_lists.js @@ -17,7 +17,13 @@ const listType = process.argv[2]; const downloadLists = async (filename, urls) => { await downloadFiles(resolve(`./${filename}`), urls); console.log( - `Done. The ${filename} file contains merged data from ${urls.length} list(s).` + `Done. The ${filename} file contains merged data from the following list(s):` + ); + console.log( + urls.reduce( + (previous, current, index) => previous + `${index + 1}. ${current}\n`, + "" + ) ); };