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.
33 lines • 2.54 kB
text/typescript
import { DateLike } from "./common/types.cjs";
import { Atom } from "./feeds/atom/common/types.cjs";
import { Json } from "./feeds/json/common/types.cjs";
import { Rdf } from "./feeds/rdf/common/types.cjs";
import { Rss } from "./feeds/rss/common/types.cjs";
import { Opml as Opml$1 } from "./opml/common/types.cjs";
import { parse as parse$1 } from "./common/parse.cjs";
import { detect } from "./feeds/atom/detect/index.cjs";
import { generate } from "./feeds/atom/generate/index.cjs";
import { parse } from "./feeds/atom/parse/index.cjs";
import { detect as detect$1 } from "./feeds/json/detect/index.cjs";
import { generate as generate$1 } from "./feeds/json/generate/index.cjs";
import { parse as parse$2 } from "./feeds/json/parse/index.cjs";
import { detect as detect$2 } from "./feeds/rdf/detect/index.cjs";
import { parse as parse$4 } from "./feeds/rdf/parse/index.cjs";
import { detect as detect$3 } from "./feeds/rss/detect/index.cjs";
import { generate as generate$3 } from "./feeds/rss/generate/index.cjs";
import { parse as parse$5 } from "./feeds/rss/parse/index.cjs";
import { generate as generate$2 } from "./opml/generate/index.cjs";
import { parse as parse$3 } from "./opml/parse/index.cjs";
//#region src/index.d.ts
/** @deprecated Use `import type { Atom } from 'feedsmith/types'` and access as `Atom.Feed` instead. */
type AtomFeed<TDate extends DateLike> = Atom.Feed<TDate>;
/** @deprecated Use `import type { Json } from 'feedsmith/types'` and access as `Json.Feed` instead. */
type JsonFeed<TDate extends DateLike> = Json.Feed<TDate>;
/** @deprecated Use `import type { Rdf } from 'feedsmith/types'` and access as `Rdf.Feed` instead. */
type RdfFeed<TDate extends DateLike> = Rdf.Feed<TDate>;
/** @deprecated Use `import type { Rss } from 'feedsmith/types'` and access as `Rss.Feed` instead. */
type RssFeed<TDate extends DateLike> = Rss.Feed<TDate>;
/** @deprecated Use `import type { Opml } from 'feedsmith/types'` and access as `Opml.Document` instead. */
type Opml<TDate extends DateLike, A extends ReadonlyArray<string> = ReadonlyArray<string>> = Opml$1.Document<TDate, A>;
//#endregion
export { AtomFeed, JsonFeed, Opml, RdfFeed, RssFeed, detect as detectAtomFeed, detect$1 as detectJsonFeed, detect$2 as detectRdfFeed, detect$3 as detectRssFeed, generate as generateAtomFeed, generate$1 as generateJsonFeed, generate$2 as generateOpml, generate$3 as generateRssFeed, parse as parseAtomFeed, parse$1 as parseFeed, parse$2 as parseJsonFeed, parse$3 as parseOpml, parse$4 as parseRdfFeed, parse$5 as parseRssFeed };