Nyora (JavaScript) - v0.1.1
    Preparing search index...

    Class MangaService

    Browse, search, and read manga directly through the parser runtime.

    Index

    Constructors

    Methods

    • Fetch a page of popular manga from a source.

      Parameters

      • sourceId: string

        Identifier of the source to query.

      • page: number = 1

        One-based page number to fetch.

      Returns Promise<SearchPage>

      A SearchPage of entries.

    • Fetch a page of the latest updated manga from a source.

      Parameters

      • sourceId: string

        Identifier of the source to query.

      • page: number = 1

        One-based page number to fetch.

      Returns Promise<SearchPage>

      A SearchPage of entries.

    • Search a source for manga matching a query.

      Parameters

      • sourceId: string

        Identifier of the source to query.

      • query: string

        Free-text search query.

      • page: number = 1

        One-based page number to fetch.

      Returns Promise<SearchPage>

      A SearchPage of matching entries.

    • Fetch full metadata and the chapter list for one manga.

      Parameters

      • sourceId: string

        Identifier of the source that owns the manga.

      • mangaUrl: string

        The manga's source-relative or absolute URL.

      • options: { title?: string } = {}

        Optional extras.

        • Optionaltitle?: string

          Known title passed through to the parser to help resolve the entry.

      Returns Promise<MangaDetails>

      A MangaDetails with the manga and its chapters.

    • Resolve the readable image pages of a single chapter.

      Parameters

      • sourceId: string

        Identifier of the source that owns the chapter.

      • chapterUrl: string

        The chapter's source-relative or absolute URL.

      • options: { branch?: string | null } = {}

        Optional extras.

        • Optionalbranch?: string | null

          Scanlation branch/translation to select.

      Returns Promise<MangaPage[]>

      An ordered array of MangaPage objects.