Simple wrapper over Reddit public API (no overhead, no auth token)
npm i reddit-simple --save
or Clone this repo
const { RedditSimple } = require("reddit-simple");
RedditSimple.TopPost("programmerHumor").then(res => {
console.log(res);
}).catch(e => {
console.log(e);
});
RedditSimple.RandomPost("freefolk").then(res => {
console.log(res);
}).catch(e => {
console.log(e);
});
RedditSimple.SubReddit().then(res => {
console.log(res);
}).catch(e => {
console.log(e);
});
RedditSimple.SpyRedditor("dashuser").then(res => {
console.log(res);
}).catch(e => {
console.log(e);
});