waifu.pics
v0.0.2
Published
<p align="center"> <img src="https://i.waifu.pics/Lcq0Tx8.jpg" width=40%><br> <b>A simple wrapper for <a href="https://waifu.pics">waifu.pics</a> api</b> <br><br> <img src="https://img.shields.io/github/package-json/v/tentaclenotsoft/node-waif
Maintainers
Readme
Installation
# with npm
$ npm install waifu.pics
# or with Yarn
$ yarn add waifu.picsMethods
| The structure of this library contains an object of functions and they are Promise. Available methodsExists possibility of having methods not available in this package that will be possible to be accessed from the fetch method. |
| --- |
fetch(endpoint)
- endpoint: A string containing one of these endpoints
Returns :
Promise<Object>
endpoints()
Returns :
Promise<string[]>
Search usage example
const WaifuPics = require('waifu.pics')
WaifuPics.fetch('nsfw')
.then(console.log)
.catch(console.error)Returns
{ url: 'https://i.waifu.pics/8Ml_Y6V.jpg' }