Simple module that retrieves a sub reddits JSON feed. Module returns a Promise.
$ npm install reddit-subs
var redditSubs = require('reddit-subs');
Basic example
var redditSubs = require('reddit-subs');
redditSubs('pics').then(function(res){
console.log(res);
});
With error handling.
redditSubs('pics').then(function(res){
console.log(res);
}).catch(function(err){
console.log(err);
});