1.3.1 • Published 11 months ago

purrbot-api v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Purrbot.site API Wrapper

An up-to-date unofficial Wrapper for the purrbot.site API 100% API Coverage 100% TypeScript Coverage 100% JSDoc Coverage

Getting started

import PurrBot from 'purrbot-api';

PurrBot.get('img', false, 'neko'); // returns Promise<string>
PurrBot.list('gif', false, 'neko'); // returns Promise<string[]>

PurrBot.sfw.get('gif', 'neko'); // returns Promise<string>
PurrBot.sfw.list('gif', 'neko'); // returns Promise<string[]>
PurrBot.sfw.gif.get('neko'); // returns Promise<string>
PurrBot.sfw.gif.list('neko'); // returns Promise<string[]>
PurrBot.sfw.img.get('neko'); // returns Promise<string>
PurrBot.sfw.img.list('neko'); // returns Promise<string[]>
PurrBot.sfw.categories.neko('gif'); // returns Promise<string>
PurrBot.sfw.categories.senko(); // returns Promise<string>

// NSFW Categories have the same Syntax

Options

imgType: either `img` or `gif`
nsfw: boolean
category: string

Support

If you need Help, please contact me at Discord or open an Issue on GitHub

Contributing

I will happily accept your Pull-Request if it:

  • looks reasonable
  • does not break backwards compatibility
1.2.0

11 months ago

1.3.1

11 months ago

1.1.3

11 months ago

1.2.1

11 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago