Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chronick/node-hn
hackernews reader for the command line, intended primarily for use in GeekTool
https://github.com/chronick/node-hn
Last synced: 16 days ago
JSON representation
hackernews reader for the command line, intended primarily for use in GeekTool
- Host: GitHub
- URL: https://github.com/chronick/node-hn
- Owner: chronick
- License: wtfpl
- Created: 2013-04-18T22:29:06.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-12T18:54:14.000Z (about 11 years ago)
- Last Synced: 2024-06-01T10:27:52.209Z (29 days ago)
- Language: JavaScript
- Size: 734 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Lists
- awesome-hacker-news - Node HackerNews
README
# Node HackerNews #
*A command-line HackerNews lister and opener*This is a simple script for pulling down the HN homepage articles, as well as opening the article links in a browser via the command line. I designed this primarily for use in GeekTool, with the idea being that it would always be on my desktop, and any time an article looks interesting to me I just type ```hn ``` and be on my merry way.
To use out of the box (in the ```bin``` directory):
$ node hn [-ca]
I did this to make my life easier:
$ ln -s /path/to/node-hn/bin/hn ~/bin/hn
Run without arguments:
$ hn
Produces:
HackerNews
0 Want to Block Common Passwords? Sorry, That is Patented
1 Solar panels could destroy U.S. utilities, according to U.S. utilities
2 Show HN: Hospice.io €“ Vagrant configurations generator
3 Single page apps in depth
4 Exposed Webcam Viewer
5 Canada's Guide to patents
So now all I have to do when I see an interesing article on my desktop is:
$ hn
And the article opens in the nearest browser window! Pretty neat!
If I want to see the comments page instead:
$ hn -c
Or if I want to open both the article and the comments:
$ hn -a
If I want to specify how many articles are displayed (very useful for geektool):
$ hn -nHave fun!