1.1.8 • Published 5 months ago

shiro.gg v1.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Shiro.gg

GitHub top language
npm bundle size
Maintenance
GitHub last commit (branch)

Unofficial API wrapper for api.dbot.dev/ Formerly shiro.gg

A Quick Example

const shiro = require('shiro.gg')

// Using promise .then()
shiro.hug().then(hug => {
    console.log(hug.url)
})

// Using async function
const hug = async () => {
    let hugData = await shiro.hug()
    console.log(hug.url)
}
hug()

Installation

Install with npm:

npm i shiro.gg

Importing

Import with CommonJS require():

// Import the whole module
const shiro = require("shiro.gg");
// Or, Just some functions
const { Hug } = require("shiro.gg");

Import with EcmaScript / TypeScript import:

// Whole Module
import * as shiro from 'shiro.gg'

//Or, Just some functions
import { Hug } from 'shiro.gg'

Namings

Since version 0.1.2 both PascalCase (eg. Hug()) and camelCase (eg. hug()) are available.

Example

A basic example using await
Note: await is only usable in async functions

const res = await Hug()
console.log(res)

A basic example using .then():

Hug().then( (res) => {
    console.log(res)
})
//Optional
.catch(console.log)

Return type

ImageResult {
    // The url of the image
    url: string;
    // The type of the image (png | jpg | gif)
    type: string;
}

Functions

SFW

NameDescription
AvatarGet a random avatar
AvatarsSame as Avatar
BlushGet a random image / gif of blushing
CryGet a random image / gif of crying
HugGet a random image / gif of hugging
KissGet a random image / gif of kissing
LickGet a random image / gif of licking
NekoGet a random image of a catgirl
NomGet a random image / gif of eating
PatGet a random image / gif of patting
PokeGet a random image / gif of poking
PoutGet a random image / gif of pouting
PunchGet a random image / gif of punching
SlapGet a random image / gif of slapping
SleepGet a random image / gif of sleeping
SmugGet a random image / gif of smugging
TickleGet a random image / gif of tickling
TrapGet a random image of a Trap
WallpaperGet a random wallpaper
WallpapersSame as wallpaper

NSFW

NameDescription
BDSMGet image of BDSM
BondageGet a random Bondage (subset of BDSM) image
HentaiGet a random Hentai image
ThighGet a random thigh image
ThighsSame as thigh

Other info

GitHub repo
NPM module
Shiro Api

1.1.8

5 months ago

1.1.7

5 months ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.0.1

3 years ago