mavlina
v1.0.3
Published
A utility api based package
Downloads
17
Maintainers
Readme
About
Mavlina is a powerful Node.js module that allows you to easily interact with the Mavlina's API.
- Easy to use
- Lightweight
- Object-oriented
- Performant
Installation
Node.js 16.9.0 or newer is required.
npm install mavlina
yarn add mavlina
pnpm add mavlina
Example
const Mavlina = require("mavlina")
async function call() {
const mavlina = new Mavlina()
const facts = await mavlina.facts()
console.log(facts)
const wyr = await mavlina.wyr()
console.log(wyr)
const truth = await mavlina.truth("normal")
console.log(truth)
const dare = await mavlina.dare()
console.log(dare)
const randomtnd = await mavlina.randomtnd("normal")
console.log(randomtnd)
const nhie = await mavlina.nhei("nsfw")
console.log(nhie)
}
call()