1.0.9 • Published 3 years ago

bee-api v1.0.9

Weekly downloads
32
License
ISC
Repository
github
Last release
3 years ago

alt text

Bee API

A minimalistic Api to fetch information from reddit

Table of Contents

  1. ChangeLog.
  2. Description.
  3. Usage.
  4. Options.
  5. Details.
  6. Contact information.

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

FieldTypeDescriptionDefault
subredditString....N/A
allowNSFWbooleanwhether or not the returned post can be marked as NSFWfalse
allowModPostbooleanwhether or not the returned post can be distinguished as a mod postfalse
allowCrossPostbooleanwhether or not the returned post can be a crosspostfalse
allowVideobooleanwhether or not the returned post can be a videofalse
newPostsbooleanwhether or not the returned post is a new postfalse

5. Details

bla bla bla bla bla
}).then(post => {
    // some code here
}).catch(e => {
    console.error(`Rejection: ${e}`);
});

6. Contact information

Future updates

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago