JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q29803F
  • License ISC

Package Exports

  • tabby-api-wrapper

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tabby-api-wrapper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tabby-api-wrapper

Image renderer with 2 workers.
216 lines of code, 1 dependency

Installation

Current stable version: 1.0

$ npm install tabby-api-wrapper

Usage

const TabbyApi = require('tabby-api-wrapper');
const api = new TabbyApi('your_token'); // required

const image = api.clyde('Hello world'); // returns buffer

Example:

const TabbyApi = require('tabby-api-wrapper');
const api = new TabbyApi('your_token');
const client = new Discord.Client();

client.on('message', async (message) => {
    let args = message.content.toLowerCase().split(' ');
    if (args[0] == 'clyde') {
        let buffer = await api.clyde(args.slice(1).join(' '));
        let attachment = new Discord.MessageAttachment(buffer, 'clyde.png');
        message.channel.send(attachment);
    };
});

Token

Token required.
request - Form

Limit

5 requests per second.
If you exceed rate limit, your IP will be banned for minute.

Endpoints

affect - avatar
beautiful - avatar
blur - avatar
circle - avatar
clyde - avatar
deepfry - avatar
delete - avatar
dither - avatar
gay - avatar
grayscale - avatar
hitler - avatar
changemymind - message
invert - avatar
jail - avatar
jokeoverhead - avatar
pixelate - avatar
qr - message
rip - avatar
rotate - avatar (90 degrees)
sepia - avatar
shit - avatar
trash - avatar
triggered - avatar (gif)
wanted - avatar
wasted - avatar