nhentai
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published


Discord server NPM downloads npm npm bundle size

A library for interacting with the nhentai API

Installing

npm install nhentai

Usage

const nhentai = require('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(', ');
});

Package Sidebar

Install

npm i nhentai

Weekly Downloads

33

Version

3.0.0

License

MIT

Unpacked Size

21.9 kB

Total Files

19

Last publish

Collaborators

  • diamond_