reddit-subs

    1.0.9 • Public • Published

    Simple module that retrieves a sub reddits JSON feed. Module returns a Promise.

    Installation

    $ npm install reddit-subs
    

    Usage

    var redditSubs = require('reddit-subs');
    

    Examples

    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);
    });

    Keywords

    Install

    npm i reddit-subs

    DownloadsWeekly Downloads

    1

    Version

    1.0.9

    License

    ISC

    Last publish

    Collaborators

    • etoxin