@shineiichijo/marika
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published
I Love Chitoge more tbh

Marika

NPM

A promise based API wrapper for the unofficial MyAnimeList API

Documentation


Installation

npm i @shineiichijo/marika

yarn add @shineiichijo/marika

🚀 Usage Examples

import { Marika } from '@shineiichijo/marika'

;(async () => {
    const { anime } = new Marika()
    await anime.getAnimeById(1)
    .then(console.log)
    .catch(console.error)
})()
import { Manga } from '@shineiichijo/marika'

;(async () => {
    const manga = new Manga()
    await manga.getMangaSearch({ q: 'Nisekoi', page: 1, genres: [22, 4], limit: 1 })
    .then(console.log)
    .catch(console.error)
})()
import { Marika, AnimeSeasons, AnimeTypes } from '@shineiichijo/marika'

;(async () => {
    const { seasons } = new Marika()
    await seasons.getSeason(2023, AnimeSeasons['FALL'], { sfw: true, filter: AnimeTypes['TV'] })
    .then(console.log)
    .catch(console.error)
})()
import { Characters } from '@shineiichijo/marika'

;(async () => {
    const characters = new Characters()
    await characters.getCharacterFullById(66597)
    .then(console.log)
    .catch(console.error)
})()
import { Marika, Days } from '@shineiichijo/marika'

;(async () => {
    const { schedules } = new Marika()
    await schedules.getSchedules({ filter: Days['MONDAY'] })
    .then(console.log)
    .catch(console.error)
})()

Package Sidebar

Install

npm i @shineiichijo/marika

Weekly Downloads

7,589

Version

3.0.1

License

MIT

Unpacked Size

198 kB

Total Files

101

Last publish

Collaborators

  • shineiichijo