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

shiro.gg

v1.1.8

Published

An api wrapper for shiro.gg

Downloads

28

Readme

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

| Name | Description | | :--------- | :----------------------------------- | | Avatar | Get a random avatar | | Avatars | Same as Avatar | | Blush | Get a random image / gif of blushing | | Cry | Get a random image / gif of crying | | Hug | Get a random image / gif of hugging | | Kiss | Get a random image / gif of kissing | | Lick | Get a random image / gif of licking | | Neko | Get a random image of a catgirl | | Nom | Get a random image / gif of eating | | Pat | Get a random image / gif of patting | | Poke | Get a random image / gif of poking | | Pout | Get a random image / gif of pouting | | Punch | Get a random image / gif of punching | | Slap | Get a random image / gif of slapping | | Sleep | Get a random image / gif of sleeping | | Smug | Get a random image / gif of smugging | | Tickle | Get a random image / gif of tickling | | Trap | Get a random image of a Trap | | Wallpaper | Get a random wallpaper | | Wallpapers | Same as wallpaper |

NSFW

| Name | Description | | :--------- | :------------------------------------------ | | BDSM | Get image of BDSM | | Bondage | Get a random Bondage (subset of BDSM) image | | Hentai | Get a random Hentai image | | Thigh | Get a random thigh image | | Thighs | Same as thigh |

Other info

GitHub repo
NPM module
Shiro Api