DiamondMiner88 / nhentai

A library for interacting with the nhentai API

Home Page:https://diamondminer88.github.io/nhentai/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool



Discord server NPM downloads Code Coverage npm bundle size npm

A library for interacting with the nhentai API

  • Documentation
  • 100% coverage of known API
  • NOT ABANDONED, JUST FEATURE COMPLETE

Installing

npm install nhentai

Usage

// 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(', ');
});

About

A library for interacting with the nhentai API

https://diamondminer88.github.io/nhentai/index.html

License:MIT License


Languages

Language:TypeScript 98.9%Language:Shell 1.1%