1.0.2 • Published 2 years ago

waifuim.js v1.0.2

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

waifuim.js

Version Issues License

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

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago