Socket
Book a DemoInstallSign in
Socket

bee-api

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bee-api

reddit api

1.0.9
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

alt text

Bee API

A minimalistic Api to fetch information from reddit

Table of Contents

  • ChangeLog.
  • Description.
  • Usage.
  • Options.
  • Details.
  • Contact information.

1. ChangeLog

  • You can new sort for new posts

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

  • By default, the Reddit JSON API should not return any removed or deleted posts.
  • Unhandled rejections can be caught and handled:
bla bla bla bla bla
}).then(post => {
    // some code here
}).catch(e => {
    console.error(`Rejection: ${e}`);
});

6. Contact information

  • Discord: Nemijah#6392
  • Email: hopetobylol@gmailcom
  • Github: DaatUserName
  • Discord server: https://discord.gg/3MAuPMjh7f
  • feel free to ping me

Future updates

  • imgur api

Keywords

reddit

FAQs

Package last updated on 23 Aug 2021

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.