Natural Preference for Minification

    redddit

    1.1.0 • Public • Published

    redddit

    Simple Reddit API, no authentication needed!

    sample code

    const redddit = require('./index.js');
    redddit.topPosts("videos",function(err,res){
        if (err !== null) {
            console.log(err.code)
        } else {
            var post = res[0].data.permalink;
            redddit.getPost(post, function(err,res) {
                console.log(res.comments)
            })
        }
    });

    Keywords

    Install

    npm i redddit

    DownloadsWeekly Downloads

    0

    Version

    1.1.0

    License

    UNLICENSED

    Unpacked Size

    5.61 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar