diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..b1e8a57 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,14 @@ +{ + "env": { + "browser": true, + "commonjs": true, + "es2021": true + }, + "extends": "eslint:recommended", + "parserOptions": { + "ecmaVersion": 13 + }, + "rules": { + + } +} diff --git a/.gitignore b/.gitignore index 7f7ebcd..aff7a9e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,12 +5,18 @@ node_modules .npmignore # minified files -/lib/main.min.js -/lib/src/fetcher.min.js -/lib/src/shorter.min.js +/lib/kasuApi.min.js +/lib/src/parser.min.js + +/.nyc_output /docs/other/*.md /docs/other/embeded link.psd test.js +package-lock.json + +# whenever I rewrite the code to clean it +/lib/src/newParser.min.js +/lib/src/newkasuApi.min.js minifier.js diff --git a/.travis.yml b/.travis.yml index 7f77d0f..29a5632 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,8 @@ language: node_js +dist: xenial +os: + - linux node_js: - "14" script: - - npm run go \ No newline at end of file + - npm run build \ No newline at end of file diff --git a/README.md b/README.md index 40916e1..9b3e65d 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,19 @@ async function json(){ ExampleApi.connection.close() } ``` +--- +## For CLI `new` +run Bash + + nhentai 228922 +run batch + + nhentaibat 228922 + +check the changelogs for more info + +--- +
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
-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
-