1.1.1 • Published 6 years ago

node-kitsu v1.1.1

Weekly downloads
403
License
ISC
Repository
github
Last release
6 years ago

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])
});
1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.4.0

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.15

7 years ago

0.2.14

7 years ago

0.2.13

7 years ago

0.2.12

7 years ago

0.2.11

7 years ago

0.2.10

7 years ago

0.2.9

7 years ago

0.2.8

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago