A Node wrapper for MyWaifuList.
npm i @void206551/mwl-api --save
const MWL = require('@void206551/mwl-api')
const Waifu = new MWL("Your API Key")
// Logs the daily waifu
Waifu.dailyWaifu().then(console.log).catch(console.error)
getWaifu(slugOrId)
→ Gets the information about a waifugetWaifuImages(slugOrId)
→ Returns up to 10 images of a waifugetWaifuByPage(letter, page)
→ Gets a list of waifus from a given letter and pagedailyWaifu()
→ Returns the daily waifurandomWaifu()
→ Returns a random waifu
getAiring()
→ Gets all the currently airing showsgetBestWaifus()
→ Gets all the best waifus from this seasongetPopularWaifus()
→ Gets the most popular waifus from this seasongetTrashWaifus()
→ Gets the most trashed waifus form this season
getSeries(slurOrId)
→ Gets information about a seriesgetSeriesByPage(letter)
→ Gets a list of series from a certain lettergetSeriesBySeason(season, year)
→ Gets a list of series that aired during a certin season of a yearseason
:spring
,summer
,fall
,winter
getSeriesWaifus(slugOrId)
→ Gets the waifus from a certain series from a slur or ID
getUser(userId)
→ Gets the information from a usergetUserWaifus(userId, type)
→ Gets the waifus from a usertype
:trash
,like
,created
getUserLists(userId)
→ Gets the lists a user hasgetUserList(userId, listId)
→ Gets the data from a list
search(string)
→ Search a stringsearchBeta(string)
→ Search a string (Better results)searchWaifu(name)
→ Search a waifu namesearchSeries(name)
→ Search a series name