A simple wrapper for waifu.pics api
# with npm
$ npm install waifu.pics
# or with Yarn
$ yarn add waifu.pics
The structure of this library contains an object of functions and they are Promise. Available methods Exists possibility of having methods not available in this package that will be possible to be accessed from the fetch method. |
---|
- endpoint: A string containing one of these endpoints
const WaifuPics = require('waifu.pics')
WaifuPics.fetch('nsfw')
.then(console.log)
.catch(console.error)
{ url: 'https://i.waifu.pics/8Ml_Y6V.jpg' }