Hacker News Typescript API
A clean Typescript client for the Hacker News API.
Dependencies
Examples
Get 5 newest top stories
; HackerNews.getStoriesHackerNews.TYPE_TOP, 0, 5 .then;
List item/user updates
; HackerNews.getUpdates.thenconsole.logupdates;
Get user info for user of newest post
; HackerNews.getMaxItem .thenHackerNews.getUseritem.by .then;
Get top posts for each category
; HackerNews.TYPES.forEach;