/AniWrapper

Api Wrapper for AniList for CRUD on user List

Primary LanguageJavaScriptMIT LicenseMIT

CircleCI dependencies Status devDependencies Status Coverage Status npm version

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));

Contribute

yarn install

yarn _postinstall

add a .env file to your root with the following inside:

TOKEN=<YourToken>
QA_TOKEN=<YourToken>

To contribute create your own branch and put a PR