1.1.2 • Published 8 years ago

frontpage-hn v1.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

frontpage-hn

Retrieves the front page stories from Hacker News in JSON format.

Build Status

usage

var getFrontPageHN = require('frontpage-hn');

getFrontPageHN(function(err, posts) {
  if (err) { throw err; }

  console.log(posts);
});

// Example output:
/*
  [{
    id: 10768440,
    title: 'Deep Learning: An MIT Press Book in Preparation',
    postLink: 'http://goodfeli.github.io/dlbook/',
    commentsLink: 'https://news.ycombinator.com/item?id=10768440',
    comments: 20
  },
  ...
  ]
*/

tests

npm test

license

MIT