Skip to content

An API wrapper for computerfreaker's hentai endpoint and anime endpoint!

License

Notifications You must be signed in to change notification settings

CFCorp/hentai.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haha yes

Hentai.js ~ A Hentai API wrapper!

An API wrapper for computerfreaker's API endpoints!

An Example for usage:

const { HentaiClient } = require("hentai.js");

const hentaiClient = new HentaiClient({
    useragent: "Example/Production/0.0.0" // optional useragent (you'll be given a shitty hentai.js useragent if you don't edit this)
});

// Fetching Hentai

hentaiClient.hentai().then((result) => {
    console.log(result);
});

// Getting hentai.js' version

hentaiClient.version;

// Fetching anime

hentaiClient.anime().then((result) => {
    console.log(result);
});

// Fetching D.VA

hentaiClient.dva().then((result) => {
    console.log(result);
});

// Fetching traps

hentaiClient.trap().then((result) => {
    console.log(result);
});

// Fetching hugs

hentaiClient.hug().then((result) => {
    console.log(result);
});

// Fetching baguettes

hentaiClient.baguette().then((result) => {
    console.log(result);
});

Made by snarkyllama™

Links

computerfreaker's website ~ Click me!

About

An API wrapper for computerfreaker's hentai endpoint and anime endpoint!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published