npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nhentparser

v1.0.8

Published

Simple command handler

Downloads

7

Readme

Nhentai Parser

Note : This project is only recreation based of nana-api using puppeteer another Note : if you get ip ban = skill issue and dont forget this repo is based

Install

npm install nhentparser puppeteer puppeteer-extra puppeteer-extra-plugin-stealth

Example

JS

const puppeteer = require("puppeteer-extra");
const StealthPlugin = require("puppeteer-extra-plugin-stealth");
puppeteer.use(StealthPlugin());

const {Client} = require("nhentparser");
const client = new Client(puppeteer);

// Get gallery from book ID or book link
client.g("14045").then(console.log);
client.g("https://nhentai.net/g/4501").then(console.log);

TS/ESM

import puppeteer from "puppeteer-extra";
import StealthPlugin from "puppeteer-extra-plugin-stealth";
puppeteer.use(StealthPlugin());

import {Client} from "nhentparser"
const client = new Client(puppeteer);

// Get gallery from book ID or book link
client.g("14045").then(console.log);
client.g("https://nhentai.net/g/4501").then(console.log);

Results

Full Object interface could be open in utils/Interface

Where "Book" is the Book Interface from g,getBook,random method

and "List" is List interface from tag,search,character,artist,related,popular method

API List

The ID of a doujin can be found can be found at after the /g/ in the search bar or a URL.

https://nhentai.net/g/248121 in this case 248121 is the ID.

Client.g(ID | Link)

  • ID | Link can both string or number

Get book API from book ID of book Link return a Book Object

Client.random() Get random book API return a Book Object

Client.getRelated(ID | Link)

  • alias related

  • ID | Link can both string or number

Get realated book API from book ID or book link return a List Object

Client.homepage([page])

  • page is optional and must be a number

Get book list from nHentai homepage return a List Object

Client.getPopularNow()

  • alias popular

Get book list from popular section return a List Object

Client.search(keyword [, page, popular ])

  • page must be a number
  • popular can be a boolean or string, if set true will get the popular list available string parameter is: today, all, and week

Get search list from keyword provided return a List Object

Client.tag(keyword [, page, popular ]) Same as Client.search()

Client.artist(keyword [, page, popular ]) Same as Client.search()

Client.character(keyword [, page, popular ]) Same as Client.search()

Client.parody(keyword [, page, popular ]) Same as Client.search()

Client.group(keyword [, page, popular ]) Same as Client.search()