feedsmith
Version:
Fast, all‑in‑one feed parser and generator for RSS, Atom, RDF, and JSON Feed, with support for Podcast, iTunes, Dublin Core, and OPML files.
25 lines (24 loc) • 588 B
JavaScript
import { parserConfig } from "../../common/config.js";
import { XMLParser } from "fast-xml-parser";
//#region src/opml/parse/config.ts
const stopNodes = [
"opml.head.title",
"opml.head.datecreated",
"opml.head.datemodified",
"opml.head.ownername",
"opml.head.owneremail",
"opml.head.ownerid",
"opml.head.docs",
"opml.head.expansionstate",
"opml.head.vertscrollstate",
"opml.head.windowtop",
"opml.head.windowleft",
"opml.head.windowbottom",
"opml.head.windowright"
];
const parser = new XMLParser({
...parserConfig,
stopNodes
});
//#endregion
export { parser, stopNodes };