top-programming-news
Get the top entries from Hacker News and r/programming
usage
$ yarn add top-programming-news$ # or $ npm i --save top-programming-news$ node
The default limit is 30, the number of entries on the Hacker News front page.
> const news = undefined> newsPromise <pending> > id: 13840785 title: 'Planet Explorer Beta' url: 'https://www.planet.com/' comments: 'https://news.ycombinator.com/item?id=13840785' id: '5ym1fv' title: 'Password Rules Are Bullshit' url: 'https://blog.codinghorror.com/password-rules-are-bullshit/' comments: 'https://www.reddit.com/r/programming/comments/5ym1fv/password_rules_are_bullshit/'
> newsPromise <pending> > id: 13840785 title: 'Planet Explorer Beta' url: 'https://www.planet.com/' comments: 'https://news.ycombinator.com/item?id=13840785'
> newsPromise <pending> > id: '5ym1fv' title: 'Password Rules Are Bullshit' url: 'https://blog.codinghorror.com/password-rules-are-bullshit/' comments: 'https://www.reddit.com/r/programming/comments/5ym1fv/password_rules_are_bullshit/'
License
MIT