feedsmith
Version:
Robust and fast parser and generator for RSS, Atom, JSON Feed, and RDF feeds, with support for Podcast, iTunes, Dublin Core, and OPML files.
10 lines • 509 B
JavaScript
import { parseEntry as parseAtomEntry, parseFeed as parseAtomFeed, } from '../../feeds/atom/parse/utils.js';
export const retrieveEntry = (value) => {
return (parseAtomEntry(value, { prefix: 'atom:', partial: true }) ||
parseAtomEntry(value, { prefix: 'a10:', partial: true }));
};
export const retrieveFeed = (value) => {
return (parseAtomFeed(value, { prefix: 'atom:', partial: true }) ||
parseAtomFeed(value, { prefix: 'a10:', partial: true }));
};
//# sourceMappingURL=utils.js.map