Socket
Book a DemoInstallSign in
Socket

@ipmanlk/reddit-simple

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ipmanlk/reddit-simple

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

latest
Source
npmnpm
Version
2.2.1
Version published
Maintainers
1
Created
Source

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

Keywords

Reddit_Wrapper

FAQs

Package last updated on 03 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts