Skip to content

A simple library for getting a waifu from thiswaifudoesnotexist.net

License

Notifications You must be signed in to change notification settings

RossComputerGuy/twdne.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twdne.js

A simple library for getting a waifu from thiswaifudoesnotexist.net

Installing

$ npm install --save twdne.js

Usage

const twdne = require('twdne.js');

// Randomly selects one
twdne.randomWaifu().then(({desc, img}) => {
  console.log(`Waifu Image URL: ${img}`);
  console.log(desc);
});

// Pulls a selected waifu by it's ID.
twdne.fetchWaifu(21566).then(({desc, img}) => {
  console.log(`Waifu Image URL: ${img}`);
  console.log(desc);
});

About

A simple library for getting a waifu from thiswaifudoesnotexist.net

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published