New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

redd

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redd

Reddit helper - grabs pages of posts

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

Redd

Grab a subreddit's posts

Install

$ npm install redd

Usage

const redd = require('redd')
const subreddit = 'programming'
redd(subreddit, function (err, posts) {
  if (err) {
    return handleError(err)
  }
  console.log(posts.map(function (post) {
    return post.title
  })
})

API

redd(subreddit, callback)

subreddit

Type: string

URL slug for desired subreddit

callback

Type: function

Arg1: err

Arg2: array of post ojbects

Licence

MIT © Ben Evans

Keywords

reddit

FAQs

Package last updated on 24 Nov 2015

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