redditapi
v1.0.1
Published
An API wrapper for Reddit.
Downloads
1
Readme
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
isnew
by default. Possible topics arehot
,new
,rising
,controversial
,top
.
Methods
Post.minified(); // returns the data without null values