shibe.online
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

shibe.online


Package Downloads Travis Dependencies DevDeps DevDeps

npm

Table of Contents

About

JavaScript API wrapper for https://shibe.online.

Installation

Using npm:

npm i shibe.online

Using yarn:

yarn add shibe.online

Using pnpm:

pnpm add shibe.online

Documentation

The documentation is at https://1chisensei.github.io/shibe.online.

Example

const Shibe = require('shibe.online');

(async () => {
	const img = await Shibe.getShibe();
	console.log(img); // https://cdn.shibe.online/shibes/abc.jpg
})();

Shibe.getShibe(3).then((a) => {
	console.log(a); // ['https://cdn.shibe.online/shibes/def.jpg', 'https://cdn.shibe.online/shibes/ghi.jpg', 'https://cdn.shibe.online/shibes/jkl.jpg']
});

Compatibility

Node.js Version Compatible?
v0.10.48 No
v0.12.18 No
v4.9.1 No
v5.12.0 No
v6.17.1 No
v7.10.1 No
v8.17.0 No
v9.11.2 No
v10.23.2 No
v11.15.0 No
v12.20.1 Yes
v13.14.0 Yes
v14.15.4 Yes
v15.7.0 Yes

Usage

getShibe([count])

  • Count is optional. (Default: 1)
  • Returns {Promise<string | string[]>}

getCat([count])

  • Count is optional. (Default: 1)
  • Returns {Promise<string | string[]>}

getBird([count])

  • Count is optional. (Default: 1)
  • Returns {Promise<string | string[]>}

Readme

Keywords

none

Package Sidebar

Install

npm i shibe.online

Weekly Downloads

2

Version

2.0.0

License

GPL-3.0

Unpacked Size

648 kB

Total Files

50

Last publish

Collaborators

  • 1chi