Constructors
constructor
- new NHentai(_options?: { cookie_value?: string; site: "nhentai.to" | "nhentai.net" | "https://nhentai.to" | "https://nhentai.net"; user_agent?: string }): NHentai
-
Parameters
-
_options: { cookie_value?: string; site: "nhentai.to" | "nhentai.net" | "https://nhentai.to" | "https://nhentai.net"; user_agent?: string } = ...
-
Optional
cookie_value?: string
-
site: "nhentai.to" | "nhentai.net" | "https://nhentai.to" | "https://nhentai.net"
-
Optional
user_agent?: string
Methods
explore
- explore(page?: number): Promise<IList>
-
Returns Promise<IList>
search
- search(query: string, options?: { page?: number }): Promise<IList>
-
Parameters
-
query: string
-
Optional
options: { page?: number }
Returns Promise<IList>
validate
- validate(id: string | number): Promise<boolean>
-
Returns Promise<boolean>
Constructs an instance of the NHentai class