Skip to content

bote795/AniWrapper

Repository files navigation

CircleCI dependencies Status devDependencies Status Coverage Status npm version downloads

AniWrapper

Api Wrapper for AniList
Anilist API Documentation

Install

yarn add aniwrapper
npm install --save aniwrapper

Get Token

To retrieve a token you can go to the following and paste your token
GetToken
You can also retrieve a token setting up your own anilist app
make sure not to expose your token to a github repo or post it online

Basic Usage

import Anilist from 'aniwrapper'             // ES Modules and Babel
const Anilist = require('aniwrapper')        // CommonJS and Browserify
const Anilist = require('aniwrapper/node')   // node-only package

Quick Start

//node
const Anilist = require('aniwrapper/node');
const aniClient = new Anilist(token);
aniClient
  .getUserList()
  .then((result) => console.log(result));