BananAPI.js
A wrapper to use the https://bananapi.ml API which has some fun endpoints
Install
npm install bananapi
API Key
You need a key to use this API to get one, we use discordapp to manage users and give out api keys so to apply you need to join our discord server using the link https://discord.gg/3Nxb7yZ and once your in run b.apply
command by sending it in chat
Usage
const BananAPI = require;const fs = require.promises;const api = new BananAPI.Client;
Discord.js example, sending attachments
// Note we required both but you need just one depending on your version// v11.x.x stable is Attachment// v12.0.0 dev is MessageAttachmentconst Attachment MessageAttachment = ; const image = await apidisabled"something";messagechannel;
TypeScript
TypeScript typings gets installed by default, you can use it straight with TypeScript and even if you are not the typings gives a nice intellisense code suggestion on editors like Visual Studio Code
Here is an example using TypeScript
; ; client.reverse"TypeScript" .then;
License
MIT