This is a promise based wrapper for the YCombinator's Hacker News API.
const hackerNews = require('hacker-news-wrapper');
hackerNews.fetchTopStories().then(topStories => {
hackerNews.fetchItem(topStories[0]).then(item => {
console.log(item);
});
});
This is Node.js module. Currently it's not available through npm registry
Download the latest release from releases page or clone the repository
npm install hacker-news-wrapper.tar.gz
or
npm install hacker-news-wrapper/
I haven't tried with yarn but it could work with it also.
View the documentation for more information
The project is licensed under MIT liscense.