Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kitsu

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kitsu

Simple & lightweight JSON-API client for Kitsu and other complient APIs

  • 2.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.9K
increased by3.73%
Maintainers
1
Weekly downloads
 
Created
Source

Kitsu

npm npm installs David

Travis AppVeyor CC Coverage CC Score CC Issues

Simple & lightweight JSON-API client for Kitsu.io and other complient APIs

For breaking changes in 2.0, check the CHANGELOG

Features

  • Supports OAuth2 token authentication
  • Uses the Promise API
  • Retries on network failure
  • Timeout handling

Install

yarn add kitsu
npm install kitsu --save

Usage

// ES6/Babel/Webpack
import Kitsu from 'kitsu'
// CommonJS/Browserify
const Kitsu = require('kitsu')

// For kitsu.io developers
const kitsu = new Kitsu()

// For other JSON-API uses
const example = new Kitsu({
  apiUrl: 'https://example.org/api'
})

// Get a collection of resources
kitsu.get('anime').then(res => console.log(res))

// Get a resource
kitsu.get('anime/1')

// Create a resource
kitsu.post('post', {
  content: 'some content'
})

// Update a resource
kitsu.patch('post', {
  id: '1',
  content: 'new content'
})

// Delete a resource
kitsu.remove('post', 1)

More Examples

Docs

You can find the kitsu package documentation here

Check out the Kitsu.io API documentation for all the available models and their responses and relationships

Contributing

See CONTRIBUTING

Releases

See CHANGELOG

License

All code released under MIT

Keywords

FAQs

Package last updated on 18 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc