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 + +--- +

(≧▽≦*) Other Informations (≧▽≦*)

diff --git a/docs/changelogs.html b/docs/changelogs.html index fdc6825..387afc5 100644 --- a/docs/changelogs.html +++ b/docs/changelogs.html @@ -10,301 +10,322 @@ - + - + - + -
-

Changelogs

-
- versions - -

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

-
( patches are not included )
-
- -

3.6.0

-

Fix Update

- -

Any bugs / Error encouner please make an issue so I can fix it.

-
-

3.5.1

- -
-

3.5.0

-

New Update

- -

-> See the Documentation for more info

-

Removed request headers property:

-
-

Module's fetcher is now changed from https to http2 which no longer require keepAlive which is also made the module performance better*

-
-

Code rebuild!

-

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.

-
-

- - -

-
-
-

3.2.2

-

Documentation Update

- -
-

3.2.1

-

Quick Fix

- -

idk

- -
-

3.0.1

-

Quick patch

- -
-

3.0.0

-

Update

- -
-

2.9.2

-

Hotfix and code update

- -
-

2.9.0

-

New Update

-

Added new IsDiscord

- - -
-

2.8.1

-

Code update

- -
-

2.7.6

-

Quick Patch

- -
-

2.7.5

-

Quick Hotfix Patch

- -
-

2.7.4

-

Patch update

- -
-

2.7.3

-

Patch update

- -
-

2.7.2

-

Quick Hotfix Patch

- -
-

2.7.0

-

Minor update

- -
-

2.5.4

-

Update

- -
-

2.5.2

-

Patch update

- -
-

2.5.0

-

Not really a major update but why not

- -
-

2.0.0

-

Not really a major update but why not

- -
-

1.0.3

-

Patch update

- -
-

1.0.1

-

Patch update

- -
-

1.0.0

-

The Creation

- -
-
- -

clicky buttons

-


-

-

Homepage

- -
- -

- Ichimaki Kasura
- ©copyright 2021 -

-
\ No newline at end of file +
+

Changelogs

+
+ versions + +

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

+
( patches are not included )
+
+ +

3.7.0

+

New Update / Fix Update

+ +

Any bugs / Error encouner please make an issue so I can fix it.

+
+

3.6.0

+

Fix Update

+ +

Any bugs / Error encouner please make an issue so I can fix it.

+
+

3.5.1

+ +
+

3.5.0

+

New Update

+ +

-> See the Documentation for more info

+

Removed request headers property:

+
+

Module's fetcher is now changed from https to http2 which no longer require keepAlive which is also made the module performance better*

+
+

Code rebuild!

+

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.

+
+

+ + +

+
+
+

3.2.2

+

Documentation Update

+ +
+

3.2.1

+

Quick Fix

+ +

idk

+ +
+

3.0.1

+

Quick patch

+ +
+

3.0.0

+

Update

+ +
+

2.9.2

+

Hotfix and code update

+ +
+

2.9.0

+

New Update

+

Added new IsDiscord

+ + +
+

2.8.1

+

Code update

+ +
+

2.7.6

+

Quick Patch

+ +
+

2.7.5

+

Quick Hotfix Patch

+ +
+

2.7.4

+

Patch update

+ +
+

2.7.3

+

Patch update

+ +
+

2.7.2

+

Quick Hotfix Patch

+ +
+

2.7.0

+

Minor update

+ +
+

2.5.4

+

Update

+ +
+

2.5.2

+

Patch update

+ +
+

2.5.0

+

Not really a major update but why not

+ +
+

2.0.0

+

Not really a major update but why not

+ +
+

1.0.3

+

Patch update

+ +
+

1.0.1

+

Patch update

+ +
+

1.0.0

+

The Creation

+ +
+
+ +

clicky buttons

+


+

+

Homepage

+ +
+ +

+ Ichimaki Kasura
+ ©copyright 2021 +

+
\ No newline at end of file diff --git a/docs/documentation.html b/docs/documentation.html index 9b3a2dc..7167f60 100644 --- a/docs/documentation.html +++ b/docs/documentation.html @@ -11,14 +11,14 @@ - + - + @@ -26,8 +26,11 @@ - + + + +
@@ -37,7 +40,6 @@

-=Documentation for the kasu.nhentaiapi.js=-

-
Overview
@@ -48,9 +50,6 @@

- - -
kasu.nhentaiapi.js
@@ -113,13 +112,6 @@

- - - - - - -
Json Object
@@ -130,15 +122,10 @@

- - - - - +

CLI

Return bacc


-

Get started

npm i kasu.nhentaiapi.js
@@ -147,11 +134,11 @@

const Example = require('KasuNhentai'); // experimental, if it doesn't work use 'kasu.nhentaiapi.js' const ExampleApi = new Example(); /** - * or const ExampleApi = new Example('start', "https://nhentai.net"); - * If you don't want to add the url and connection.start() after it. - * because it automatically start the connection. - * - * Check the documentation for more info. +* or const ExampleApi = new Example('start', "https://nhentai.net"); +* If you don't want to add the url and connection.start() after it. +* because it automatically start the connection. +* +* Check the documentation for more info. */ // ----number | strings can do---- @@ -305,12 +292,10 @@

    ⠀pRandTag( tag, fn )⠀

    - ⠀pRandParody( tag, fn )⠀ -

+ ⠀pRandParody( tag, fn )⠀

    - ⠀pRandArtist( tag, fn )⠀ -

+ ⠀pRandArtist( tag, fn )⠀

    ⠀pRandGroup( tag, fn )⠀