- Fixed a bug where it didn't show any results when no argument is passed.
- It now shows anime titles randomly chosen from a list and searched on the database.
- Reduced dependency on
chalk
npm package.
Most of the changes in this version focus on the development side and improving the code in general but there is one feature that has been added now for limiting the fetched results.
- Limit the fetched results for any anime title by passing the number of results you want (should be between 1 and 100),
anime-cli <anime-title> <number>
-
NOTE
: As of now, not passing any anime-title gives out an error (you can try that) and I am aiming to fix it in the next version which will be released soon. -
Use of non-functional returns has been droped and instead we are using
process.exit()
to quit the process. -
eslint
andprettier
is now being used for making the code better and linting the files. -
Using strict
eslint
rules for better programming.
- Fix
-h
argument not working because of early constraint checking on arguments. - Upgrade to v1.4.0.
- Fix a bug where if searched with a two digit number then it gives out error.
- Added comments to the main js file to know the code better.
- Fixed some lexical and keyword errors.
- Added some more recommended animes in
RA.json
so that they get displayed when the user doesnt pass any argument.
- Fixed help message
- Thanks to @KennyTheBard for adding the following features.
- You can choose if the fetched titles will have displayed score, for this run
anime-cli showScore true
or to unset it runanime-cli showScore false
. - You can choose if the fetched titles will have displayed year, for this run
anime-cli showYear true
or to unset it runanime-cli showYear false
. - You can sort ascendent or descendent on a (single) field, for this run
anime-cli <search-term> --asc Score
oranime-cli <search-term> --desc Score
- Thanks to @atul-g for creating a much better help section and adding a version check command.
- Added a config file which is used for setting limit for the results and to show only the matched results.
- The config file in Linux/MacOS gets stored at
~/.config/configstore/@genzyy/anime-cli.json
and generally gets stored at$CONFIG/package-name/config.json
. - An example config would be like
{
"setLimit": false,
"limit": 10,
"onlyMatches": false
}
- To set a limit on the data fetched run
anime-cli setLimit true <number-results-to-show>
. - To unset the limit run
anime-cli setLimit false
. - You can also fetch only the titles which match to your query, for this run
anime-cli onlyMatches true
or to unset it runanime-cli onlyMatches false
. - Also instead of running these commands, you can manually edit the config file and change accordingly.
- Fixed a bug where it threw an error when only
anime-cli
was run.
With the help from:
Added a feature to search anime even in lowercase when passed in the arguments.
Thanks to:
For adding 'type' section for a better sorting of movies and TV shows.