Hacker News in the Command Line.
(This probably isn't the best way, but here it goes)
- Download the latest version of hacker - https://github.com/chrishannah/hacker/releases.
- Open up your terminal app of choice.
- Navigate to the folder containing the "hacker" file.
- Add the executable permission to the file:
chmod +x hacker
. - Move the file to the usr/local/bin directory so it can be launched as a command:
mv hacker /usr/local/bin
.
Usage: hacker [options]
Options:
-n, --new The newest 20 submissions.
-t, --top The current top 20 submissions.
-b, --best The current best 20 submissions.
-h, --help Output this usage guide.
Example:
hacker --new