goat-some-random-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Goat Some Random API (GSRA)

Promise-based Node.js wrapper for Some Random API.

GSRA library build state. GSRA npm status. GSRA downloads counter

About


The GSRA library created in order to simplify and speed up working with the Some Random API in the TypeScript and JavaScript environment. Here are some of the main benefits:

  • The library built on the principle of Promises.
  • Almost complete coverage of SRA endpoints by the library.
  • Continuous improvement and completion.

Installation


Requirements:
  • node: 12.0.0 or newer,
  • npm: 6.9.0 or newer.
Download library:

Installation using npm:

npm install goat-some-random-api

Basic usage


const { SRAClient } = require("goat-some-random-api");
const client = new SRAClient("your-token");

client.dog().then((response) => console.log(response));

Examples


You can find some examples here. You can also supplement them by creating a new Pull Request with the written examples.

License


The GSRA library is licensed and published under the GPL-3.0 license. You can read the text of this license here.

© CodeGoat & Contributors, 2021. Created on Earth :)

Package Sidebar

Install

npm i goat-some-random-api

Weekly Downloads

4

Version

1.0.2

License

GPL-3.0

Unpacked Size

80.8 kB

Total Files

7

Last publish

Collaborators

  • codegoatx