Note
This project is very much abandoned now, but it should work till the nh devs change something.
A simple CommonJS and ES Module typescript client library for nhentai.
Current Docs are for v5.0.x
NOTE: NPM Package has been removed and moved to GitHub's Package Registry!
yarn add @curstantine/kongou
import {Kongou, TagType, SortType, LanguageType} from "@curstantine/kongou";
// Fetching library that implements the fetch api.
// https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
const kongou = new Kongou(fetch);
await kongou.getBook(1234);
const query = new QueryBuilder()
.addTag(TagType.Artist)
.addLanguage(LanguageType.English)
.setSort(SortType.Recent);
await kongou.getByQuery(query);
x is the module type.
-
kongou/x/utils
- Contains QueryBuilder for creating a query with ease.
-
kongou/x/enums
- Contains basic enums.
-
kongou/types
- Contains types of structures returned by the server.
Thank you! <3