• Stars
    star
    458
  • Rank 92,129 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📰 CLI to browse Hacker News

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)
     --latest               Sort the list by submission date (defaults to false)

Features

  • By default it will list stories using the same order as seen on HN
  • You can change the list order to display the most recent ones by runnig the program with the --latest flag
  • You can use Vim arrow keys j and k to navigate through the list
  • Use gg to scroll to the first item of the list and G to scroll to the last one
  • Hitting the enter key will open the URL in your default browser
  • Hitting the c key will open the HN comments for that story on your default browser
  • Share an item on Twitter by hitting the t key
  • Hitting the r key will refresh the stories and update the current list
  • A status bar is fixed on the bottom of the screen to provide visual feedback about updates and reading progress
  • Use esc, ⌃C or q to close the program

License

MIT © Rafael Rinaldi


Buy me a ☕

More Repositories

1

whereami

📍 Get your geolocation information using freegeoip.app
JavaScript
159
star
2

data-components

♻️ Tiny component structure for web applications
JavaScript
101
star
3

porreta

👍 Get funny words in Brazilian Portuguese
JavaScript
75
star
4

til

📓 Collection of things I learn daily
53
star
5

mdn

Man pages for web APIs using MDN
JavaScript
42
star
6

atomify

Automatically atomify your CSS (draft)
32
star
7

html-meta-tags

Generate HTML meta tags from JSON data.
JavaScript
28
star
8

responsive-styles

Use arrays as values to specify mobile-first responsive styles for CSS-in-JS projects
JavaScript
28
star
9

sound-manager

🔈 Keep sound management intuitive and organized
HTML
26
star
10

transitionable-routes

Perform transitions when changing routes with React Router
JavaScript
26
star
11

hold-up

✋ Wait until a given condition is true
JavaScript
22
star
12

loading-indicator

🚦 Simple and customizable command line loading indicator
JavaScript
19
star
13

npm-downloads

📦 Get download stats from any package published to npm
JavaScript
17
star
14

cheatsheets

📝 My personal list of cheatsheets
17
star
15

bookmarkletify

🔖 Convert JavaScript files to bookmarklets
Shell
16
star
16

group-by

Group a list of objects by a given field name (implemented with ES6 features)
JavaScript
14
star
17

hyper-terminal-tabs

Brings Terminal.app look and feel to Hyper
JavaScript
13
star
18

malaco

Malaco is a tool that consumes data from Sao Paulo's subway system and expose it in a normalized API
JavaScript
13
star
19

vimfiles

⚡ My Vim setup
Vim Script
11
star
20

pesticide.js

Easy way to debug the visible elements in a web page.
JavaScript
10
star
21

dotfiles

My personal ~/
Emacs Lisp
10
star
22

to-boolean

Convert strings to boolean.
JavaScript
10
star
23

unicorn

A simple command line color manager for working with Node.js.
JavaScript
9
star
24

google-maps-coordinate-parser

Coordinate parser for Google Maps urls.
JavaScript
7
star
25

hyper-papercolor

PaperColor theme for Hyper
JavaScript
7
star
26

brooklynjs

Simple bot that warns you when tickets for BrooklynJS are available
HTML
7
star
27

siga

Siga is a mobile web app whose main goal is to offer a single source of information for people who use Sao Paulo's subway system.
JavaScript
6
star
28

truco

♠️ Truncate strings.
JavaScript
5
star
29

combine-same-keys

Combine all properties sharing the same key into a single object
JavaScript
5
star
30

x9

TypeScript
5
star
31

slush-web-app

🔧 Scaffold a web app with Slush.
JavaScript
5
star
32

st-snippets

Snippets for SublimeText.
5
star
33

npm-search

🔍 Faster `npm search`
JavaScript
4
star
34

fla2img

Retrieves all the image files within your .fla files.
JavaScript
4
star
35

media-queries

↕️ CSS media queries based on Zurb's Foundation breakpoints
CSS
4
star
36

changes

📝 Keep track of your code releases.
Shell
3
star
37

fulfil

👌 Simple search suggestion using the Levenshtein distance algorithm.
JavaScript
3
star
38

matt.js

Simple string formatter based on the sprintf implementation.
JavaScript
3
star
39

guess-programming-language

Naive programming language guessing built on top of highlight.js
JavaScript
3
star
40

curlyq

Convert straight quotes to smart quotes
JavaScript
3
star
41

add-zero

0️⃣ Add a leading zero to a number.
JavaScript
3
star
42

phantom-url

👻 Node's native URL parser to work with PhantomJS.
JavaScript
2
star
43

gh-linguist

GitHub's linguist data base exposed as a Node.js module
Shell
2
star
44

broken-link

🔗 Check wether or not a link is broken.
JavaScript
2
star
45

data-attributes

Extract data attributes from a DOM node.
JavaScript
2
star
46

ty

Appreciate team members for taking the time to review your pull request
JavaScript
2
star
47

ere

Brainfuck script that will teach you what the hell is "Erê"
2
star
48

lazy-loader

A lazy loading engine for ActionScript.
JavaScript
2
star
49

slush-node-module

🔧 Scaffold a Node.js module with Slush.
JavaScript
2
star
50

fla2swf

Publish a list of .fla files in a batch.
JavaScript
1
star
51

nextjs-now

JavaScript
1
star
52

day-with-suffix

1
star
53

n-times

Run a function N times
JavaScript
1
star
54

rafaelrinaldi

1
star
55

is-phantom

👻 Check if current running context is PhantomJS.
JavaScript
1
star
56

flashtracer

Manage your Flash logs via command line.
Shell
1
star
57

list

Handy way to manipulate lists.
HTML
1
star
58

swf2html

Generate a HTML wrapper for your SWF file.
Shell
1
star
59

inject-markup

💉 Inject HTML into a web page.
JavaScript
1
star
60

css-in-js-talk

Talk given at Work & Co about CSS in JS
CSS
1
star
61

selectable

TypeScript
1
star
62

curlyq-website

TypeScript
1
star