1.0.0 • Published 16 days ago
node-mwl v1.0.0
node-mwl
node-mwl is a simple tool which allows you to get data from MyWaifuList.
Installation
> npm i node-mwl
Usage
node-mwl is a versatile npm package that simplifies the process of accessing data from the MyWaifuList website. With node-mwl, you can:
- Fetch random waifus
- Retrieve random characters
- Get random husbandos
- Access the "Waifu of the Day" feature
Integrating these functionalities into your project is straightforward, making it easy to enhance your application with diverse anime-related content.
Import
Before using the library, you need to import it.
import { getCharacter, getRandomCharacter, waifuOfTheDay, randomWaifu, randomHusbandos } from 'node-mwl' // ES6
const { getCharacter, getRandomCharacter, waifuOfTheDay, randomWaifu, randomHusbandos } = require('node-mwl') // CommonJS
Function getCharacter
:
// Example usage:
getCharacter('tanjiro')
.then((character) => {
console.log(character);
})
.catch((error) => {
console.log(error);
});
1.0.0
16 days ago