4.1.2 • Published 1 year ago
node-myanimelist v4.1.2
Node-MyAnimeList
Node-MyAnimeList is a small promise based package for downloading information from MyAnimeList. Node-MyAnimeList is using Jikan.moe API and flew methods created by me specially for this package
Intellisens Support (Typescript)
Instalation
npm i node-myanimelist
Import
const { Mal, Jikan } = require("node-myanimelist");
// Or
import { Mal, Jikan } from 'node-myanimelist';
MalAPI Example
const auth = Mal.auth("6114d00ca681b7701d1e15fe11a4987e" /* app_id */ );
// Unoffical way to login (not recomended)
const acount = await auth.Unstable.login("username","password");
// Offical way to login (recomended)
// import pkceChallenge from "pkce-challenge";
// const pkce = pkceChallenge();
const url = auth.getOAuthUrl(pkce.code_challenge)
// Open returned url, accept oauth and use returned code to authorize
const acount = await auth.authorizeWithCode(code,pkce.code_challenge);
let search = await acount.manga.search(
"Sakurasou",
Mal.Manga.fields()
.alternativeTitles()
.startDate()
.endDate()
.synopsis()
.mean()
.rank()
.popularity()
.numListUsers()
.numScoringUsers()
.nsfw()
.genres()
.createdAt()
.updatedAt()
.mediaType()
.status()
.myListStatus(
Mal.Manga.listStatusFields()
.startDate()
.finishDate()
.priority()
.numTimesReread()
.rereadValue()
.tags()
.comments()
)
.numVolumes()
.numChapters()
.authors()
).call();
// Alternative if you don't care about choosing fields
let searchIDC = await acount.manga.search(
"Sakurasou",
Mal.Manga.fields().all()
).call();
List of functions
For more detalis visit doc
4.1.2
1 year ago
4.1.1
1 year ago
4.1.0
1 year ago
4.0.0
2 years ago
3.0.4
4 years ago
3.0.3
4 years ago
3.0.2
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.1.4
4 years ago
2.1.3
4 years ago
2.1.2
4 years ago
2.1.1
4 years ago
2.1.0
4 years ago
2.0.0
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago