Official minimal JavaScript wrapper for waifu.pics. Refer to the docs for available endpoints currently in the API
npm i -s waifu.js
const client = require('waifu.js')
let api = new client()
async function hello() {
console.log(await api.sfw.waifu());
}
hello()
This returns an image URL as such:
https://i.waifu.pics/P817hp4.jpg