1.0.1 • Published 4 years ago
@void206551/mwl-api v1.0.1
@void206551/mwl-api
A Node wrapper for MyWaifuList.
Install:
npm i @void206551/mwl-api --save Usage:
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) Functions:
Waifu
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
Currently Season
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
Series
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
User
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
search(string)→ Search a stringsearchBeta(string)→ Search a string (Better results)searchWaifu(name)→ Search a waifu namesearchSeries(name)→ Search a series name
1.0.1
4 years ago