From 5700e740f82b9d84a969873266e81fbe6e775957 Mon Sep 17 00:00:00 2001 From: Jan Andrle Date: Wed, 26 Jun 2024 15:52:59 +0200 Subject: [PATCH] :cop: refactored --- README.md | 4 +++- cli.mjs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 82c4587..bd72f8e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # pagenotfound-cli -Utility primary for generating RSS feed for Pagenotfound \ No newline at end of file +Utility primary for generating RSS feed for Pagenotfound + +[RSS](https://gitea.jaandrle.cz/jaandrle/pagenotfound-cli/raw/branch/main/rss.xml) diff --git a/cli.mjs b/cli.mjs index 2d38ae8..1b3282d 100755 --- a/cli.mjs +++ b/cli.mjs @@ -1,8 +1,7 @@ #!/usr/bin/env -S npx nodejsscript /* jshint esversion: 11,-W097, -W040, module: true, node: true, expr: true, undef: true *//* global echo, $, pipe, s, fetch, cyclicLoop */ -import { JSDOM } from "jsdom"; const url_drops= "https://pagenotfound.cz/drop/"; -const { name, version, description }= s.cat("package.json").xargs(JSON.parse); +const { version, description }= s.cat("package.json").xargs(JSON.parse); /** * @typedef {Object} Article * @property {string} title @@ -63,6 +62,7 @@ async function toRSS(json){ "" ].join("\n")).to(path); } +import { JSDOM } from "jsdom"; async function sitemap(){ const path= "sitemap.json";