A library for interacting with the nhentai API
- Documentation
- 100% coverage of known API
- NOT ABANDONED, JUST FEATURE COMPLETE
npm install nhentai
// CommonJS
const nhentai = require('nhentai');
// ES6/Typescript
import * as nhentai from "nhentai";
const api = new nhentai.API();
api.fetchDoujin(334430).then(doujin => {
// Keijun Yahagi wa Koi o Shita. Jou | Light Cruiser Yahagi Fell In Love - First
doujin.titles.pretty;
// https://i.nhentai.net/galleries/1767063/1.jpg
doujin.pages[0].url;
// https://t.nhentai.net/galleries/1767063/cover.jpg
doujin.cover.url;
// english, translated, kantai collection, teitoku, yahagi, rosapersica, [etc...]
doujin.tags.all.map(tag => tag.name).join(', ');
});