/hacker-news-top-list

Fetches the top ten articles (Browser Only)

Primary LanguageJavaScript

Hackernews Top List

This library just includes one default export. Which when called will return a promise resolving to a list of articles from hackernews.

API

getArticles: (count = 30) =>
  Promise<
    Array<HackerNewsArticleShape>
  >

Usage

import getArticles from 'hacker-news-top-list';


getArticles().then(res =>
  console.log(res)
)