diff --git a/index.mjs b/index.mjs index 0919e55..08cfed6 100755 --- a/index.mjs +++ b/index.mjs @@ -12,14 +12,14 @@ const noticesStr = notices .map(notice => JSON.stringify(notice)) .join(",\n"); - console.log(noticesStr + (last ? "" : ",\n")); + console.log(noticesStr + (last ? "" : ",")); } const bar = new cliProgress.SingleBar({}, cliProgress.Presets.shades_grey); let afterKeyToken; let errorPages = 0; -console.log("[\n"); +console.log("["); const response = await fetch("https://corhal-api.inist.fr/mergedDocuments?size=50"); let notices = /** @type {object[]} */(await response.json()); @@ -50,7 +50,7 @@ display(notices, true); -console.log("]\n"); +console.log("]"); if (errorPages) { console.error(`There has been ${errorPages} pages in error!`);