npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-kitsu

v1.1.1

Published

Easily pull data from kitsu.io

Downloads

208

Readme

node-kitsu

A simple and easy way to pull info from kitsu.io

NPM

(Note that as of 1.0, node-kitsu now utilizes promises instead of callbacks. If you would like to catch an error in usage, it would look something like kitsu.searchAnime('example', '0').then(...).catch(/*handle error*/).)

Functions:

searchAnime(query, offset) Returns an array of anime objects with anime data if found, null otherwise. Ten results per search, you can adjust the results with offset. First object is probably the best fit for the search. Full anime object can be found here.

var kitsu = require('node-kitsu');

kitsu.searchAnime('New Game!', 0).then(results => {
    console.log(results[0])
});

listAnime(offset) Returns an array of 10 anime out of all of the anime on the site in order of ID. Offset can be changed to move the starting point. Default is 0.

var kitsu = require('node-kitsu');

kitsu.listAnime(0).then(results => {
    console.log(results[0])
});

searchManga(query, offset) Returns an array of manga objects with manga data if found, null otherwise. Ten results per search, you can adjust the results with offset. First object is probably the best fit for the search. Full manga object can be found here.

var kitsu = require('node-kitsu');

kitsu.searchManga('Monster Musume', 0).then(results => {
    console.log(results[0])
});

listManga(offset) Returns an array of 10 manga out of all of the anime on the site in order of ID. Offset can be changed to move the starting point. Default is 0.

var kitsu = require('node-kitsu');

kitsu.listManga(0).then(results => {
    console.log(results[0])
});

searchDrama(query, offset) Returns an array of drama objects with drama data if found, null otherwise. Ten results per search, you can adjust the results with offset. First object is probably the best fit for the search. Full drama object can be found here.

(AS OF 3/29/17, THERE ARE NO DRAMAS ON KITSU AS OF YET. THIS WILL RETURN WITH RETURN WITH NO RESULTS UNTIL KITSU STATES OTHERWISE.)

var kitsu = require('node-kitsu');

kitsu.searchDrama('Drama').then(results => {
    console.log(results[0])
});

listDrama(offset) Returns an array of 10 dramas out of all of the dramas on the site in order of ID. Offset can be changed to move the starting point. Default is 0.

(AS OF 3/29/17, THERE ARE NO DRAMAS ON KITSU AS OF YET. THIS WILL RETURN WITH RETURN WITH NO RESULTS UNTIL KITSU STATES OTHERWISE.)

var kitsu = require('node-kitsu');

kitsu.listDrama(0).then(results => {
    console.log(results[0])
});

listUsers(offset) Returns an array of 10 users out of all of the users on the site in order of ID. Offset can be changed to move the starting point. Default is 0.

var kitsu = require('node-kitsu');

kitsu.listUsers(0).then(results => {
    console.log(results[0])
});

getUser(uid) Gets a user's info by username. Returns an array with (most likely) only one object. Full user object can be found here.

var kitsu = require('node-kitsu');

kitsu.getUser("TheConceptionist").then(results => {
    console.log(results[0])
});

listGenres(offset) Returns an array of 10 genres out of all of the genres on the site in order of ID. Offset can be changed to move the starting point. Default is 0.

var kitsu = require('node-kitsu');

kitsu.listGenres(0).then(results => {
    console.log(results[0])
});

findCharacter(name, offset) Gets a character's info by name. Returns an array with 10 character objects.

var kitsu = require('node-kitsu');

kitsu.findCharacter("yagami kou new game", 0).then(results => {
    console.log(results[0])
});