1.0.1 • Published 8 years ago

redditapi v1.0.1

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

Reddit

A simple to use module for interacting with the Reddit API.

Install

$ npm install redditapi

How to

// require the package
const reddit = require('redditapi');
reddit('AskReddit', 13, 'hot').then(data => console.log(data));
  • sub reddit is required and must be a string.
  • amount is required and must be a string.
  • topic is new by default. Possible topics are hot, new, rising, controversial, top.

Methods

Post.minified(); // returns the data without null values