@rygent/anilist
v1.5.0
Published
An UNOFFICIAL lightweight Node.js wrapper for Anilist GraphQL API written in typescript.
Downloads
229
Readme
Anilist Wrapper
An UNOFFICIAL lightweight Node.js wrapper for Anilist GraphQL API written in typescript.
You can visit the official graphql docs for Anilist here to find out everything you can do.
[!IMPORTANT]
This project is still under development, not everything supported yet.
Installation
# NPM
npm i @rygent/anilist
# Yarn
yarn add @rygent/anilist
# PNPM
pnpm add @rygent/anilistUsage
import { Anilist } from '@rygent/anilist';
const anilist = new Anilist();
await anilist.media.search({ type: 'Anime', search: 'Cowboy Bebop' });
await anilist.media.search({ type: 'Manga', search: 'Naruto' });[!NOTE]
- page: This property is optional and the default value is
1.- perPage: This property is optional and the default value is
20.
