UNPKG

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.

26 lines (25 loc) 654 B
const require_config = require("../../common/config.cjs"); let fast_xml_parser = require("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 fast_xml_parser.XMLParser({ ...require_config.parserConfig, stopNodes }); //#endregion exports.parser = parser; exports.stopNodes = stopNodes;