Nougat Predominant Middleware

    mal-ts
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    mal-ts

    TypeScript-safe MyAnimeList Public API wrapper

    Installation

    # npm
    npm install mal-ts
    
    # yarn
    yarn add mal-ts

    Usage

    // commonjs
    const MyAnimeList = require('mal-ts');
    const mal = new MyAnimeList('client_id');
    ...
    
    // module
    import MyAnimeList from 'mal-ts'
    const mal = new MyAnimeList('client_id');
    ...

    Replace client_id with your MyAnimeList Application's Client ID

    API

    Method Description
    defaultFields Default fields
    anime(id[, fields]) Get anime details
    manga(id[, fields]) Get manga details

    Promises

    mal-ts depends on a native ES6 Promise implementation to be supported. If your environment doesn't support ES6 Promises, you can polyfill.

    TypeScript

    mal-ts includes TypeScript definitions.

    License

    MIT

    Install

    npm i mal-ts

    DownloadsWeekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    40.3 kB

    Total Files

    26

    Last publish

    Collaborators

    • mist8kengas