nhentai-ts
Scrap and build a PDF of a doujin from NHentai (only mirror sites, check the available sites here).
Documentation
Installation
yarn add @shineiichijo/nhentai-ts
Usage Examples
import { NHentai } from '@shineiichijo/nhentai-ts'
const nhentai = new NHentai()
;(async () => {
const { data } = await nhentai.search('loli' , { page: 1 } )
const doujin = data[0]
const { images } = await doujin.getContents()
console.log(images.pages)
await images.PDF('loli.pdf' )
})()
import { NHentai } from '@shineiichijo/nhentai-ts'
const nhentai = new NHentai({ site: 'nhentai.website' })
nhentai.validate('172').then(console.log)
import { NHentai } from '@shineiichijo/nhentai-ts'
const nhentai = new NHentai({ site: 'https://nhentai.xxx' })
nhentai.explore(2 ).then(console.log)
import { NHentai } from '@shineiichijo/nhentai-ts'
const nhentai = new NHentai()
nhentai.getRandom().then(console.log)
import { NHentai } from '@shineiichijo/nhentai-ts'
const nhentai = new NHentai()
nhentai.getDoujin(172).then(console.log)
import { NHentai } from '@shineiichijo/nhentai-ts'
const nhentai = new NHentai()
nhentai.getDoujin('2456').then(
async (res) =>
await res.images.download(
'nhentai'
)
)
import { NHentai } from '@shineiichijo/nhentai-ts'
const nhentai = new NHentai()
nhentai.getRandom().then(
async (res) =>
await res.images.zip(
'nhentai.zip'
)
)