Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 527 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 527 Bytes

banner

Official minimal JavaScript wrapper for waifu.pics. Refer to the docs for available endpoints currently in the API

Installation

npm i -s waifu.js

Example

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