neverlane / shikimori

Modern ES6 Promise based API client for shikimori.one (with typescript)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

...

shikimori

Modern ES6 Promise based API client for shikimori

📖 Documentation

Version Version

Install 📦

# using npm
npm i shikimori
# using yarn
yarn add shikimori
# using pnpm
pnpm add shikimori

Usage 🔧

Check all available methods in 📖 Documentation.

import { API } from 'shikimori'; // ESM
// OR
const { API } = require('shikimori'); // CommonJS

// Create Shikimori API client, without auth 
const shikimori = new API();

shikimori.animes.get({
  search: 'восхождение в тени'
})
  .then(animes => animes.map(anime => `id: ${anime.id} | name: ${anime.name}`));

Thanks 🙏

PanSeek for help in creating types and interfaces for API

About

Modern ES6 Promise based API client for shikimori.one (with typescript)


Languages

Language:TypeScript 100.0%