3.9.3 • Published 2 years ago
kasu.nhentaiapi.js v3.9.3
The "N-hentai-api" is a fast and easy to use api for connecting to nhentai.net and nhentai.to data.
- Fast*
- Easy to use
- Reliable* :>
Discord friendly?
Install
To install "N-hentai-api" type these:
npm i kasu.nhentaiapi.js
Examples
How to use n-hentai-api
To get the basic info about the ID/Doujin:
const Example = require('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 or the homepage for more info.
*/
// ----number | strings can do----
const ID = 228922 //or "228922" or "https://nhentai.net/g/228922"
async function json(){
// start the connection
ExampleApi.url = "https://nhentai.net"
ExampleApi.connection.start()
const val = await ExampleApi.getID(ID).json()
val.url
// OR
ExampleApi.getID(ID).json(data=>{data.url})
// OR
(await ExampleApi.getID(ID).json()).url
// result: https://nhentai.net/g/228922/
// closes the connection
ExampleApi.connection.close()
}
For CLI
How to run:
nhentai 228922
check the changelogs for more info
C# port new
C# of this project's parser is now available in beta. click here to go there.
3.9.3
2 years ago
3.7.9
2 years ago
3.7.3
2 years ago
3.7.2
2 years ago
3.7.0
2 years ago
3.6.0
3 years ago
3.2.2
3 years ago
3.2.1
3 years ago
3.5.2
3 years ago
3.5.1
3 years ago
3.5.0
3 years ago
3.0.1
3 years ago
3.0.0
3 years ago
2.9.2
3 years ago
2.9.0
3 years ago
2.8.1
3 years ago
2.7.6
3 years ago
2.7.5
3 years ago
2.7.4
3 years ago
2.7.3
3 years ago
2.5.5
3 years ago
2.7.0
3 years ago
2.7.2
3 years ago
2.7.1
3 years ago
2.5.0
3 years ago
2.5.2
3 years ago
2.5.1
3 years ago
2.5.4
3 years ago
2.5.3
3 years ago
1.0.2
3 years ago
2.0.0
3 years ago
1.0.3
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago