This library just includes one default export. Which when called will return a promise resolving to the top ten articles on hackernews.
getArticles: () => Promise<Array<HackerNewsArticleShape>>
import getArticles from 'hacker-news-top-ten';
getArticles().then(res =>
console.log(res)
)