@ipmanlk/reddit-simple
v2.2.1
Published
Simple wrapper over Reddit public API (no overhead, no auth token)
Downloads
2
Readme
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);
});