A small command line utility that converts results from jisho.org to plain terminalese.
Here some output for the search term arashi
:
Note: The extraction of the kana reading may not be completely accurate in some cases. Also, changes to the site may break the application.
The application can be installed from npm:
npm install -g jisho-cli
-g
installs it globally. If you have added your global Node .bin
directory to the path you then can use the command jisho-cli
anywhere.
You can search for any term in English and Japanese (both Romaji and Kana/Kanji).
Examples:
% jisho-cli arashi
% jisho-cli 嵐
% jisho-cli storm
The flag -i
can be used to start the application interactively. The user then is prompted for search terms repeatedly (the first search term can still be provided as argument). Pressing enter without entering any text exits the application.
Using interactive mode is recommended for multiple searches as it keeps the session/cache alive. Subsequent requests thus need to transmit less data.