Skip to content

Simple wrapper over Reddit public API (no overhead, no auth token)

Notifications You must be signed in to change notification settings

ipmanlk/reddit-simple

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reddit-simple

Simple wrapper over Reddit public API (no overhead, no auth token)

Get it from npm

npm i reddit-simple --save

or Clone this repo

Import

const { RedditSimple } = require("reddit-simple");

Usage

Get top post from r/ProgrammerHumor

RedditSimple.TopPost("programmerHumor").then(res => {
    console.log(res);
}).catch(e => {
    console.log(e);
});

Get Random Post from r/freefolk

RedditSimple.RandomPost("freefolk").then(res => {
    console.log(res);
}).catch(e => {
    console.log(e);
});

Get List of Subreddits

RedditSimple.SubReddit().then(res => {
    console.log(res);
}).catch(e => {
    console.log(e);
});

Spy on Redditor

RedditSimple.SpyRedditor("dashuser").then(res => {
    console.log(res);
}).catch(e => {
    console.log(e);
});

About

Simple wrapper over Reddit public API (no overhead, no auth token)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%