A simple CLI epub reader
-
Do you want to read an epub file, but you're too lazy to move your hand from the keyboard to the mouse?
-
Do you miss the good old days of reading the encyclopedia via an ncurses application?
-
Do you know what an encyclopedia is?
Then this app is for you!
sudo snap install cli-worm
npm install -g cli-worm
- w3m
- nodeJS (>= 10.19.0)
- I recommend first installing nvm first,
then simply running,
nvm install node 8.9.4
, but you can also install node directly. Google for your platform of choice
- I recommend first installing nvm first,
then simply running,
cli-worm [--flags] <filePath>
This will a ncurses interface.
You should see a chapter list on the right and the contents of the selected chapter on the left.
You can switch between chapter selection and contents scrolling with the tab button.
The up and down arrows scroll the content. You can can also use pg-up or pg-down.
To Exit press q
, escape
or ctrl+c
--dumpdumpChapterList
: prints a list of all chapters in the e-pub with each chapter separated by a new line charater and each line containing the chapter title and the path to the chapter within the e-pub separated by commas--dumpFullText
: dumps the entire text of all chapters in the book to the command line
This project uses log4j. To turn on debug logs set the Level to debug on the environment.
Example: Level=debug node ./index.js ~/Documents/Books\ And\ Papers/Books/polarized.epub
You can then tail debug.log file to see output