Skip to content

Get HN discussion for the current URL. Powered by the HN search engine at http://hn.algolia.com

License

Notifications You must be signed in to change notification settings

nadeesha/hackertalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hackertalk

Get HN discussion for the current URL, in a CLI.

why?

When reading an article online, I sometimes feel that the discussion on HN is much more interesting than the article itself.

what's this?

hackertalk will take the url that you give it, and search via the awesome [hn.algolia.com] (http://hn.algolia.com) and try to give you the submissions, on a CLI.

installation

$ npm install hackertalk -g

usage

$ htalk <url> [--lucky]

If you provide --lucky as last argument, it'll open the first suitable match.

demo?

hackertalk in action

search whole of HN

This was uninteded, but if you want to search with keywords, you can do it like:

$ htalk "multiple monitor productivity"

contributors

todos

  • Prettifying output in colors
  • I'm feeling lucky argument (lucky) to launch the top result without asking the user (thanks to @frdmn)
  • Filtering out old HN posts that cause blank titles (thanks to @frdmn)

About

Get HN discussion for the current URL. Powered by the HN search engine at http://hn.algolia.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published