opds-ts - v1.0.3
    Preparing search index...

    Class Feed

    Index

    Constructors

    Methods

    • Adds multiple entries to the feed.

      Parameters

      • entries: Entry[]

        The entries to add.

      Returns Feed

      The Feed instance (for chaining).

    • Adds one or more entries to the feed.

      Parameters

      • ...entries: Entry[]

        The entries to add.

      Returns Feed

      The Feed instance (for chaining).

    • Adds extra fields to the feed.

      Parameters

      • key: string

        The key of the extra field.

      • value: any

        The value of the extra field.

      Returns Feed

      The Feed instance (for chaining).

    • Adds one or more links to the feed.

      Parameters

      • ...links: Link[]

        The links to add.

      Returns Feed

      The Feed instance (for chaining).

    • Adds multiple links to the entry.

      Parameters

      • links: Link[]

        The links to add.

      Returns Feed

      The Entry instance (for chaining).

    • Adds a self link to the feed. This is a convenience method for adding a self link with the appropriate rel and type.

      Parameters

      • href: string

        The URL of the feed.

      • Optionalkind: FeedKind

        The kind of the feed (navigation or acquisition).

      Returns Feed

      The Feed instance (for chaining).

    • Adds a start link to the feed. This is a convenience method for adding a start link with the appropriate rel and type.

      Parameters

      • href: string

        The URL of the start link.

      Returns Feed

      The Feed instance (for chaining).

    • Gets the current entries in the feed.

      Returns Entry[]

      The array of entries.

    • Sets the author of the feed.

      Parameters

      • author: string

        The author of the feed.

      Returns Feed

      The Feed instance (for chaining).

    • Sets the kind of the feed.

      Parameters

      • kind: FeedKind

        The kind of the feed (e.g., 'navigation', 'acquisition').

      Returns Feed

      The Feed instance (for chaining).

    • Sets the language of the feed.

      Parameters

      • lang: string

        The language of the feed. (e.g. 'en', 'de', etc.)

      Returns Feed

      The Feed instance (for chaining).

    • Sets the updated date of the feed.

      Parameters

      • updated: string

        The updated date in ISO 8601 format.

      Returns Feed

      The Feed instance (for chaining).

    • Converts the feed to an OPDS/Atom XML string.

      Parameters

      • __namedParameters: { baseUrl?: string; prettyPrint?: boolean } = {}

      Returns string

      The feed as an XML string.