Hierarchy

  • NHentai

Constructors

  • Constructs an instance of the NHentai class

    Parameters

    • _options: { cookie_value?: string; site: "nhentai.to" | "nhentai.net" | "https://nhentai.to" | "https://nhentai.net"; user_agent?: string } = ...

      Options of the NHentai class

      • Optional cookie_value?: string
      • site: "nhentai.to" | "nhentai.net" | "https://nhentai.to" | "https://nhentai.net"
      • Optional user_agent?: string

    Returns NHentai

Methods

  • Explores the list of doujin

    Returns

    The doujin list

    Parameters

    • page: number = 1

      Page number of the list

    Returns Promise<IList>

  • Searches for a doujin by a query

    Returns

    The result of the search

    Parameters

    • query: string

      Query of the doujin to search

    • Optional options: { page?: number }

      Options for searching

      • Optional page?: number

    Returns Promise<IList>

  • Validates the ID of a doujin

    Parameters

    • id: string | number

      ID of the doujin to check

    Returns Promise<boolean>

Generated using TypeDoc