import fetch from 'node-fetch'; import xmldom from '@xmldom/xmldom'; import fs from 'node:fs/promises'; import xmlFormat from 'xml-formatter'; import { platform } from 'node:os'; import { hideBin } from 'yargs/helpers'; import yargs from 'yargs'; const DESC_XMLNS = "nyanpasu:descriptor"; async function fetchDescriptor(url) { try { const response = await fetch(url); const html = await response.text(); const regex = /