npm.io
1.0.3 • Published 5 years ago

mailist

Licence
MIT
Version
1.0.3
Deps
2
Size
30 kB
Vulns
0
Weekly
0
Stars
7

MaiList

An Unofficial Anilist API Wrapper And Strongly Typed

Installing

Version

#npm
npm install mailist

#yarn
yarn add mailist

Example Usage

Anime
Methods
  • anime(query: string)
  • Mal(id: string)
  • voiceActors(query: string)
const { Anime } = require("mailist");
const get = new Anime();

function getAnime() {
    get.anime("Majo No Tabi-Tabi")
        .then(res => {
            console.log(res)
        });
}
getAnime()
  • Getting voice actors from anime title
function voiceActors() {
    get.voiceActors("Aho Girl")
        .then(res => {
            console.log(res)
        });
}
voiceActors()
Manga
Methods
  • manga(query: string)
  • Mal(id: string)
const { Manga } = require("mailist");
const get = new Manga();

function getManga() {
    get.manga("Quintessential Quintuplets")
        .then(res => {
            console.log(res)
        })
}
getManga()
Character
Methods
  • character(query: string)
const { Character } = require("mailist");
const get = new Character();

function getChar() {
    get.character("Elaina")
        .then(res => {
            console.log(res)
        })
}
getChar()

Nb

Actually i don't know how to write the docs, but i hope you understand, and if you have any questions, you can join my Discord Server

Aizuu

Keywords