UNPKG

@rowanmanning/feed-parser

Version:

A well-tested and resilient parser for RSS and Atom feeds

61 lines 1.71 kB
export type FeedAuthor = { name: string | null; email: string | null; url: string | null; }; export type FeedCategory = { label: string | null; term: string; url: string | null; }; export type FeedGenerator = { label: string | null; version: string | null; url: string | null; }; export type FeedImage = { title: string | null; url: string; }; export type FeedMeta = { type: string; version: string | null; }; export type FeedJson = { meta: FeedMeta; language: string | null; title: string | null; description: string | null; copyright: string | null; url: string | null; self: string | null; published: string | null; updated: string | null; generator: FeedGenerator | null; image: FeedImage | null; authors: Array<FeedAuthor>; categories: Array<FeedCategory>; items: Array<import("./item/base").FeedItemJson>; }; export class Feed { constructor(document: import("../xml/document").Document); protected get document(): import("../xml/document").Document; get element(): import("../xml/element").Element; get meta(): FeedMeta; get language(): string | null; get title(): string | null; get description(): string | null; get copyright(): string | null; get url(): string | null; get self(): string | null; get published(): Date | null; get updated(): Date | null; get generator(): FeedGenerator | null; get image(): FeedImage | null; get authors(): Array<FeedAuthor>; get categories(): Array<FeedCategory>; get items(): Array<import("./item/base").FeedItem>; toJSON(): FeedJson; #private; } //# sourceMappingURL=base.d.ts.map