Login

Hacker News Feed Js


Hacker-news-feed.js lightweight javascript-based.

Method:

-hnfeed(menu, page);

Parameters:

- {String} menu. list ("top", "news", "comments", "show", "ask", "jobs")
- {Integer} page. default (1)

Result:

- {Object}

Sample:

var result = hnfeed('news');
console.log(JSON.stringify(result, null, 2));

Demo Fork me on GitHub