Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rhn

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rhn

  • 0.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

RHN

Yet another WEB API for hackernews. Beware of lazy hack ahead! This project is a very thin layer on top of ruby-hackernews so we can access this info through HTTP.

The main usage of this API is an Emacs Client for Hackernews.

Install and Run

That's easy. You just have to get the code and run the rhn executable:

$ gem install rhn

Boom! Just change your emacs configuration adding the following lines:

(setq hackernews-url "http://127.0.0.1:4567/")

The next time you run M-x hackernews you'll be using your local proxy.

As a library

Add this line to your application's Gemfile

gem 'rhn'

And then execute

$ bundle

Usage

$ rhn

Then open a browser and try the following URL:

http://localhost:4567/api/?r=%7B%22symbol%22%3A%22HN.hotpage%22%7D

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 18 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc