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

top-programming-news

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

top-programming-news

Get the top entries from Hacker News and r/programming

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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 = require('top-programming-news')
undefined
> news.both(1).then(console.log)
Promise { <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/' } ] ]
> news.hackernews(1).then(console.log)
Promise { <pending> }
> [ { id: 13840785,
    title: 'Planet Explorer Beta',
    url: 'https://www.planet.com/',
    comments: 'https://news.ycombinator.com/item?id=13840785' } ]
> news.reddit(1).then(console.log)
Promise { <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

Keywords

FAQs

Package last updated on 10 Mar 2017

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