waifuim.js
v1.0.2
Published
Unofficial Waifu.im Wrapper Built In JavaScript
Downloads
7
Maintainers
Readme
waifuim.js
A lightweight JavaScript Wrapper for the Waifu.im API
Table of Contents
Installation
Install via npm
$ npm install waifuim.js
Features
- Light Weight
- Promise Based
- Easy To Use
Usage Examples
const Waifu = require('waifuim.js');
const Client = new Waifu('Get your token @ https://waifu.im/dashboard/');
const Tags = Client.tags;
// Fetching Random Images:
Client.random({
many: true,
selected_tags: [Tags.raidenShogun]
})
// Viewing Favourited Images:
Client.favourites.view({
user_id: '372786495867846656'
})
// Get Information About Certain Images:
Client.info({
images: '8664e27dfd9ad62a' // Supports both Arrays & Lone Strings
})
- Please note that if you don't provide a token, not all functions will work as some require a token to access the API.
License
MIT © Seek