1.0.2 • Published 3 years ago

goat-some-random-api v1.0.2

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

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 :)