Giter VIP home page Giter VIP logo

anime-cli's Introduction

anime-cli

image

npm GitHub npm maintained?

What its about

The anime-cli is a commandline app created using javascript modules and an external api which can be found here. The anime-cli app gives you information about the number of episodes of the anime, if its completed or not and tells you all its movies. You can also visit the npm site for this cli app here.

PS: You can check out my other similar project written in rust here: https://github.com/genzyy/anime_rs

How to install the commandline app

As the app is a npm package you first need to install NodeJS and NPM as these are the requirements for this app. Now since to make this an app or to be more clear, to be able to run this app from any directory iin the terminal/cmd, you need to install this npm package globally. To install a npm package globally you need to have root priviledges and include global flag during the installation of any npm package. To install this commandline app:
If you are using mac or linux:

  sudo npm install -g @genzyy/anime-cli

Or

  sudo yarn global add @genzyy/anime-cli

Or if you are using windows:

  npm install -g @genzyy/anime-cli

Usage

Now that you have installed the app, you can run anime-cli in your terminal or cmd and it will show you recent animes and their episodes and airing status. To get data about a specific anime or about its seasons and movies, run:

  anime-cli <anime-name>

For example:

  anime-cli Naruto

The keyword that you have used to search about the anime, if that keyword matches to any title in the result array them that anime will be highlighted in green color so that it shows that this anime is probably connected to the anime keyword that you have used to search about.

Configuration and contributing

Check out the official wiki.

Docker Commands to build

  • Build:
      docker build -t animecli .
  • Run:
      docker run --rm animecli
  • Run (with command):
      docker run --rm animecli node index.js

Some Useful Notes

The cli app is currently in development and is only mantained by me and so the development will be a little slow as I have to do my college work also. Sorry for that! But dont worry, I will keep adding new features and argument passing features for a more accurate data fetching. Also, I request you while using the cli app try to pass the exact name of the anime for example pass Boku No Hero instead of boku no hero so as to get the highlighting of the animes which contain the exact names that you have passed in the arguments.

anime-cli's People

Contributors

atul-g avatar gamecube762 avatar genzyy avatar kennythebard avatar michalnemecek avatar mqhashim avatar rrune avatar ultirequiem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

anime-cli's Issues

error when searching with only numbers

anime-cli 86

return this error

TypeError: Cannot read property 'slice' of undefined
    at /usr/lib/node_modules/@genzyy/anime-cli/index.js:178:32
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Help message displays incorrect options

The help option in the help message shows -help but if you run anime-cli -help it doesn't show the help message (should be --help).

Also the short-hand options for help and version are incorrect (and technically so are the long options (should be --help instead of help etc.).

  • Running anime-cli -h returns a search, it doesn't show the help message.
  • Running anime-cli -v returns a search, not the version.

Both just above will be 'fixed' by changing the options shown in the help message to
--help, -h
and
--version, -v

Incorrect config file path in README

According to the README, the config file ("in Linux/MacOS") is at

./config/configstore/@genzyy/anime-cli.json

but this is a relative path (and incorrect).

The general path, according to configstore is ~/.config/configstore/some-id.json thus the actual config file path:

~/.config/configstore/@genzyy/anime-cli.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.