0.0.1 • Published 3 years ago

beat-api.js v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

beat-api.js

A wrapper for https://beat-api.herokuapp.com/

Installation

NPM -

npm i beat-api.js

Yarn -

yarn add beat-api.js

Basic Usage

const API = require("beat-api.js")
const api = new API()

Functions

FunctionsParamtersDescription
emergency()textGenerates an emergency meeting image. Text is the text you want. Example: https://prnt.sc/zeqasq
weather()cityGet the weather for a city.
shorten()urlShorten a url.
cat()noneGet a random cat image or gif.
dog()noneGet a random dog image
roast()noneGet a random roast

Examples

Cat endpoint:

const API = require("beat-api.js")
const api = new API()

api.cat().then(m => console.log(m)) // {url: 'https://cdn2.thecatapi.com/images/8oufxfuHp.png'}

All functions return a promise, make sure to resolve them. If you need any help, contact Beatzoid#8010 or FC#5104 on Discord.