diff --git a/src/check.ts b/src/check.ts deleted file mode 100644 index b5e12a4..0000000 --- a/src/check.ts +++ /dev/null @@ -1,20 +0,0 @@ -import * as xmlbuilder2 from "xmlbuilder2"; -import fs from "fs"; - -console.log("STARTED"); -for (const feed of fs - .readdirSync("static/feeds") - .filter((file) => !file.startsWith("."))) { - try { - const xml: any = xmlbuilder2.convert( - fs.readFileSync(`static/feeds/${feed}`, "utf8"), - { format: "object" } - ); - if (xml?.feed?.updated === undefined) - throw new Error("Can’t find xml.feed.updated"); - console.log(`OK ${feed}`); - } catch (error) { - console.log(`ERROR ${feed}: ${error}`); - } -} -console.log("FINISHED");