1.0.0 | 2.0.0 | 2.5.0 | 2.7.0 | 2.8.1 | 2.9.0 | 3.0.0 | 3.2.1 | 3.5.0 | 3.6.0 | 3.7.0 | 3.9.0
[ NEW! ] You can now use "kasuNhentaiJS" instead of the longer "kasu.nhentaiapi.js" but you can still do the longer version.
RegEx strings are now stored in a single file. (I don't know if this helps you read the code better?)
Fixed nhentai.to getting errors or giving no results.
Fixed typo on the parser.js
improved the coding.
imagine still using 2.9.2
fixed the nhentai.to's "null groups"
fixed the language, category, group being scrambled like the group tags are in the language tag etc.
improved the coding.
require("KasuNhentai")
doesn't really work so its back to the kasu.nhentaiapi.js
.Fixed the parser problem on the NPM package.
Fixed the length is missing.
Fixed the pTagPage giving No results.
[ NEW! ]
To get the full Tags, Artists, Parodies, Groups list download the tags.d.ts.full
on github and replace the tags.d.ts
on the lib/d.ts
and remove the .full
. Will add an automatic download soon.
Any bugs / Error encouner please make an issue so I can fix it.
Fixed tons of bugs/problems/errors on the last update.
fetcher
for now.[ NEW! ] No longer depends on cheerio, Implemented new parser for less error/bug and clean code**
[ Goal Achieved! ] no longer depended on the "isomorphic-fetch" and "cheerio".
Any bugs / Error encouner please make an issue so I can fix it.
Class constructor changed.
New properties Added:
New methods Added:
-> See the Documentation for more info
Removed request headers property:
Module's fetcher is now changed from
https
tohttp2
which no longer requirekeepAlive
which is also made the module performance better*
The fecther
and shorter
is now one piece and named parser.js
.
Code rebuild also improve some performance*.
Definition is also more friendly to be able to access properties, methods and more.
issue #3 is fixed.
You can now see the property inside of the json's Data on the new Declaration.
example of the new declaration:
New property requestHeaders
API's fetcher now uses https
. If you experience slowdowns you can use Isomorpic-fetch
again from the
previous version but you can't use the new property requestHeaders
. check my test on some few "fetchers"
IgnoreNone
, Idk about this but it just removes the "blank/empty" tags on the Json when received. Example:// IgnoreNone = false;
// the json object will join the empty tags
title: {
origin: 'none'
translated: 'example'
}
// IgnoreNone = true;
// It'll remove the 'none' or 'blank/empty' tags in the object
title: {
translated: 'example'
}
// calling the removed tag will result in an error if IgnoreNone is True.
awaits
that makes it slow is now Fixed.overAlltest.js
should always end with a 1min test or lower, If it exceed 1min30sec means there's something wrong in my code please do a PR.npm install
.blockedWords
for IsDiscord
. api.blockedWords = "crossderssing gore etc"
// or "crossderssing,gore,etc" or "crossderssing gore,etc"
Hotfix and code update
pRandom
is now fixed from giving link is not defined
error message.fetcher.js
.IsDiscord
Added the ReRollonFail
bool for this specific new feature.
this feature is credited to crackheadakira
getID()
update:
the function list()
is now removed so you can now only use 1 function json()
this will cause changes on some codes that uses list()
like data.cover
is now data.images.cover
see more on the README page
You can now download the mini file version of this 2.9 here
Problem right now after publishing 2.9:
the function pRandom
has something weird saying link is not defined
this will be fixed soon
Code update
shorter.js
into a single
for statement. like removing 1kb from 3.86kb to 2.99kb* and Codes that repeats with same function but
different names has calling function so less space.Quick Patch
main.d.ts
is finally fixed, I don't know how to use typescript but adding them so functions have meanings or
how they work. I don't know? Im not an expert.Quick Hotfix Patch
console.log
on the pRandSpecificTags()
.Patch update
pRandSpecificTags()
. if the nhentai page has 0 it causes an error because it can't compute to randomize it fixed by adding a try
and catch
.try and catch
Patch update
Quick Hotfix Patch
main.js
url is accidentally put to ${url}
instead of the link.Minor update
Randrange.js
is too short so it has been removed but the contents has been transfered to the main.js
test.js
to make sure everything works.Update
Patch update
Not really a major update but why not
.json()
where the page array is undefined
d.ts
idk what that does but yeah you should see what kinda of function does Not really a major update but why not
Patch update
.json()
data picture pages call//old
data.BASE.IMAGES.THUMBS[0]
//new
data.base.images.page_pic[0]
Patch update
The Creation