ericasberry / hn-cli

:newspaper: CLI to browse Hacker News

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hn-cli Build Status

CLI to browse Hacker News

demo

Install

$ npm install -g @rafaelrinaldi/hn-cli

Usage

Usage: hn [OPTIONS]

  CLI to browse Hacker News

Example:
  $ hn --limit 10 --keep-open

Options:
  -v --version              Display current software version.
  -h --help                 Display help and usage details.
  -l --limit                Limit the number of items to display (defaults to 150).
  -k --keep-open            Wether or not to keep the list open after selecting an item (defaults to false).

Features

  • Will always fetch the latest stories (displaying the same order as on the actual website)
  • You can use Vim arrow keys j and k to navigate through the list
  • Use gg to go to scroll to the first item of the list and G to scroll to the last one
  • When you select an item by hitting the enter key, it'll open the URL on your default browser
  • Use esc, ⌃C or q to close the program

License

MIT © Rafael Rinaldi

About

:newspaper: CLI to browse Hacker News

License:MIT License


Languages

Language:JavaScript 100.0%