This package has been deprecated

Author message:

This package no longer works and will no longer be updated

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

0.1.1 • Public • Published

ci-badge docs-badge

animist

Animist is a Typescript Library which makes interacting with the AniList Api simple.

Installation

If using yarn,

$ yarn add animist --save

If using npm,

$ npm install animist --save

To use the library you will need to create an AniList client by logging into your AniList account and going to the developer settings and creating a client to obtain your client id and secret.

Examples

Retrieve an array of anime data using the passed params:

import Animist from "animist";
 
const animist = new Animist(process.env.ID, process.env.SECRET);
 
(async () => {
  let response;
  
  try {
    response = await animist.get("browse/anime", {
      airing_data: true,
      full_page: true,
      season: "winter",
      sort: "popularity-desc",
      status: "finished airing",
      type: 'TV',
      });
  } catch (e) {
    // Handle error with request
    
    console.log('Err getting anime data', e);
    return
  }
  // Do something with the returned response
  
  console.log(response);
})();

Available params can be found on AniLists Documentation Website.

License

This project is licensed under ISC.

Readme

Keywords

none

Package Sidebar

Install

npm i animist

Weekly Downloads

0

Version

0.1.1

License

ISC

Last publish

Collaborators

  • meibe