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

@irfanshadikrishad/anilist

v1.0.6

Published

Minimalist unofficial AniList CLI for Anime and Manga Enthusiasts

Downloads

433

Readme

@irfanshadikrishad/anilist

Minimalist unofficial AniList CLI for Anime and Manga Enthusiasts.

How to install?

Make sure Node.js and npm are already installed in your system. Verify installation using

node -v
npm -v

If you see the version then its installed. Otherwise install nodejs and npm should already be installed with nodejs. Then install the package by running

npm install -g @irfanshadikrishad/anilist

This will install the package globally. And you have to use commands like

anilist tr -c 15

How to use?

Create an API client from anilist developer setting with an application name and redirect url as https://anilist.co/api/v2/oauth/pin. After creating the client you will get Client ID and Client Secret which is required in order to login from CLI.

To login:

anilist login -i <client-id> -s <client-secret>

here <client-id> and <client-secret> should be replaced by the ones that you recieved from the developer setting.

CLI Commands Overview

| Command | Options | Description | | ------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------ | | login | -i, --id -s, --secret | Log in with your AniList credentials | | logout | None | Log out from your AniList account | | me | None | Display information about the logged-in user | | -V, --version | None | Display the current version of the CLI | | -h, --help | None | Display available commands and options | | trending (alias: tr) | -c (default: 10) | Fetch trending anime (default count is 10) | | popular (alias: plr) | -c (default: 10) | Fetch popular anime (default count is 10) | | user | <username> | Get information about a specific AniList user | | lists (alias: ls) | -a, --anime -m, --manga | Fetch anime or manga lists of the logged-in user | | delete (alias: del) | -a, --anime -m, --manga -ac, --activity | Delete collections of anime, manga or activities | | upcoming (alias:up) | -c (default: 10) | Fetch upcoming anime (default count is 10) | | anime | <anime-id> | Get anime details by Anime Id | | search (alias:srch/find) | <query> -a, --anime -m, --manga -c (default: 10) | Get anime/manga search results | | status (alias: write/post) | <status> | Write a status... (text/markdown/html) | | export (alias: exp) | -a, --anime -m, --manga | Export anime or manga list | | import (alias: imp) | -a, --anime -m, --manga | Import anime or manga list |

Command Breakdown:

login:

anilist login -i <client-id> -s <client-secret>
  • Options:
    • -i, --id: Specify AniList Client ID
    • -s, --secret: Provide the AniList Client Secret
  • Usage: Authenticate and log in to AniList using your ID and secret credentials.

logout:

anilist logout
  • Description: End the current session and log out from your AniList account.

me:

anilist me
  • Description: Retrieve and display information about the currently logged-in user, including stats and profile details.

-V, --version:

anilist -V
  • Description: Quickly check which version of the CLI you are running.

-h, --help:

anilist -h
  • Description: List all available commands and their usage details for quick reference.

trending (alias: tr):

anilist tr -c 15
  • Options:
    • -c (count): Specify how many trending anime to fetch (default: 10).
  • Description: Fetch the current trending anime series, with the option to customize how many results to display.

popular (alias: plr):

anilist popular
  • Options:
    • -c (count): Specify how many popular anime to fetch (default: 10).
  • Description: Fetch the most popular anime series, with the option to customize how many results to display.

upcoming (alias: up):

anilist up -c 25
  • Options:
    • -c (count): Specify how many upcoming anime to fetch (default: 10).
  • Description: Fetch the upcoming anime series next season, with the option to customize how many results to display.

user:

anilist user <username>
  • Options:
    • <username>: Specify the AniList username to fetch.
  • Description: Retrieve profile information about a specific AniList user.

lists (alias: ls):

anilist ls -a
  • Options:
    • -a, --anime: Fetch the authenticated user's anime list.
    • -m, --manga: Fetch the authenticated user's manga list.
  • Description: Get the anime or manga lists of the logged-in user.

delete (alias: del):

anilist del -ac
  • Options:
    • -a, --anime: Delete your specific anime collection that you want.
    • -m, --manga: Delete your specific manga collection that you want.
    • -ac, --activity: Delete all or any type of activities you want.
  • Description: Delete the entire anime or manga collection from the logged-in user's profile.

anime

anilist anime <anime-id>
  • Options
    • <anime-id> (eg: 21) : Id of the anime you want to get details of.
  • Description: Get anime details by anime Id.

search (alias: srch/find):

anilist search <query> -a -c 20
  • Options:
    • <query> : What you want to search (eg: naruto).
    • -a, --anime: To get results of anime search.
    • -m, --manga: To get results of manga search.
    • -c (count): Specify how many items to fetch (default: 10).
  • Description: Get anime/manga search results

status (alias: write/post):

anilist write <status>
  • Options:
    • <status> : This is what you want to write, It can be HTML, Markdown and/or Text. But wrap it with quotation mark (") else it might get cut-off.
  • Description: Get anime/manga search results

export (alias: exp):

anilist export -a
  • Options:
    • -a, --anime: To export anime list.
    • -m, --manga: To export manga list.
  • Description: Export anime or manga list

import (alias: imp):

anilist import -m
  • Options:
    • -a, --anime: To import anime list.
    • -m, --manga: To import manga list.
  • Description: Import anime or manga list

Security

Since you are creating your own API client for login no else else can get your credentials and the generated access token will be stored in your own system. So, As long as you don't share your device (in case you do, just logout) you are safe.

Contribution

Want to contribute to the project? Check out complete guideline here.

Thanks for visiting 💙