Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Simple, lightweight & framework agnostic JSON-API client for Kitsu.io and other API backends
For breaking changes in 3.0, check the CHANGELOG
yarn add kitsu
npm install kitsu
// ES2015+/Babel
import Kitsu from 'kitsu'
// CommonJS/Browserify
const Kitsu = require('kitsu')
// For kitsu.io developers
const api = new Kitsu()
// For other JSON-API uses
// e.g api.example.org/2
const api = new Kitsu({
baseURL: 'https://api.example.org',
version: 2
})
// Get a collection of resources
api.get('anime').then(res => console.log(res))
// Get a resource
api.get('anime/1')
// Get a resource's relationship
api.get('anime/1/episodes')
// Create a resource
api.create('post', {
content: 'some content'
})
// Update a resource
api.update('post', {
id: '1',
content: 'new content'
})
// Delete a resource
api.remove('post', 1)
// Destructuring with Async/Await
const { id } = await kitsu.get('users', {
filter: { id: 2 }
})
You can find the kitsu package documentation here
If you're working with Kitsu.io's API, their API documentation lists all available models with their attributes and relationships
See CONTRIBUTING
See CHANGELOG
All code released under MIT
FAQs
A simple, lightweight & framework agnostic JSON:API client using Axios
The npm package kitsu receives a total of 3,542 weekly downloads. As such, kitsu popularity was classified as popular.
We found that kitsu demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.