Kitsu
Promise based NodeJS API wrapper for Kitsu.io
Features
- Supports OAuth2 authentication
- Supports the JSON API specification
- Serialises and deserialises requests for pain-free usage
- Supports the Promise API
- Retries on network failure
- Timeout handling
Install
yarn add kitsu
or
npm install kitsu --save
Usage
import Kitsu from 'kitsu'
const Kitsu = require('kitsu')
const kitsu = new Kitsu()
kitsu.get('anime').then(res => console.log(res))
More Examples
Docs
You can find the kitsu documentation here
Check out the Kitsu.io API documentation for all the available
models and their responses and relationships
Contributing
Requirements
- git 2.0.0 or newer
- node.js 7.0.0 or newer
- yarn 0.21.0 or newer (optional)
Setup
-
Fork this repo
-
Clone your fork:
git clone https://github.com/your-username/kitsu.git
cd kitsu
-
Create a feature branch:
git checkout -b your-feature-name
-
Install dependencies:
yarn install
npm install
-
Commit changes:
git commit -am 'feat: add feature name'
-
Push changes:
git push origin your-feature-name
-
Open a pull request
Releases
See CHANGELOG
License
All code released under MIT