nhentai-wrapper
v1.1.8
Published
A Node.js wrapper for the NHentai API. Install with `npm install nhentai-wrapper`.
Readme
NHentai Wrapper
Installation
npm install nhentai-wrapperUsage
Example Code
const { getRandomDoujinshiDetails, getDoujinshiDetails, searchDoujinshis } = require("nhentai-wrapper");
async function main() {
// Get details of a specific doujinshi
const doujinshiId = 473546;
const details = await getDoujinshiDetails(doujinshiId);
console.log(details);
//Get details of a random doujinshi
const details = await getRandomDoujinshiDetails();
const { id, title, categories, imageUrls } = details;
console.log(details);
// Search doujinshis
const searchQuery = 'furry';
const searchResults = await searchDoujinshis(searchQuery);
console.log(searchResults);
}
main();