2.0.0 • Published 4 years ago

shibe.online v2.0.0

Weekly downloads
11
License
GPL-3.0
Repository
github
Last release
4 years ago

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 VersionCompatible?
v0.10.48No
v0.12.18No
v4.9.1No
v5.12.0No
v6.17.1No
v7.10.1No
v8.17.0No
v9.11.2No
v10.23.2No
v11.15.0No
v12.20.1Yes
v13.14.0Yes
v14.15.4Yes
v15.7.0Yes

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[]>}
2.0.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago