Methods
-
processOptions(options) → {nHentaiOptions}
-
Applies provided options on top of defaults.
Parameters:
Name Type Description optionsnHentaiOptions Options to apply.
Type Definitions
-
APIBook
-
Book object from API.
Properties:
Name Type Description titleobject Book title.
Properties
Name Type Description englishstring Book english title.
japanesestring Book japanese title.
prettystring Book short title.
idnumber | string Book ID.
media_idnumber | string Book Media ID.
num_favoritesnumber | string Book favours count.
num_pagesnumber | string Book pages count.
scanlatorstring Book scanlator.
uploadednumber | string Upload UNIX timestamp.
coverAPIImage Book cover image.
imagesArray.<APIImage> Book pages' images.
tagsArray.<APITag> Book tags.
-
APIImage
-
Image object from API.
Properties:
Name Type Description tstring Image type.
wnumber | string Image width.
hnumber | string Image height.
-
APISearch
-
Search object from API.
Properties:
Name Type Description resultArray.<APIBook> Search results.
num_pagesnumber | string Number of search pages available.
per_pagenumber | string Number of books per page.
-
APITag
-
Tag object from API.
Properties:
Name Type Description idnumber | string Tag id.
typestring Tag type.
namestring Tag name.
countnumber | string Tagged books count.
urlstring Tag URL.
-
httpAgent
-
Agent-like object or Agent class or it's instance.
-
nHentaiHosts
-
Common nHentai API hosts object.
Properties:
Name Type Attributes Description apistring <nullable>
Main API host.
imagesstring <nullable>
Media API host.
thumbsstring <nullable>
Media thumbnails API host.
-
nHentaiOptions
-
Common nHentai options object.
Properties:
Name Type Attributes Description hostsnHentaiHosts <nullable>
Hosts.
sslboolean <nullable>
Prefer HTTPS over HTTP.
agenthttpAgent <nullable>
HTTP(S) agent.