bee-api
v1.0.9
Published
reddit api
Downloads
26
Readme
Bee API
A minimalistic Api to fetch information from reddit
Table of Contents
1. ChangeLog
2. Description
A simple and fast wrapper for fetching data from reddit posts.
3. Usage
const api = require('bee-api');
api({
subreddit: 'cat',
allowNSFW: false,
allowModPost: true,
allowCrossPost: true,
allowVideo: true,
newPosts: true
}).then(post => {
console.log(post);
});
4. Options
Field | Type | Description | Default | :--- | ---: | :---: | :---: subreddit | String | .... | N/A allowNSFW | boolean | whether or not the returned post can be marked as NSFW | false allowModPost | boolean | whether or not the returned post can be distinguished as a mod post | false allowCrossPost | boolean | whether or not the returned post can be a crosspost | false allowVideo | boolean | whether or not the returned post can be a video | false newPosts | boolean | whether or not the returned post is a new post | false
5. Details
bla bla bla bla bla
}).then(post => {
// some code here
}).catch(e => {
console.error(`Rejection: ${e}`);
});
6. Contact information
Future updates