Socket
Socket
Sign inDemoInstall

subbey

Package Overview
Dependencies
1
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    subbey

subbey is an lightweight and asynchronous Reddit API wrapper to retrieve post easily


Version published
Weekly downloads
9
increased by350%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

subbey

subbey is an lightweight and asynchronous Reddit API wrapper to retrieve post easily

Usage

CommonJS

const {subbey} = require('subbey');
subbey({sub: 'dank', max: 1, nfsw: false, top: true});

ECMAScript

import {subbey} from 'subbey';
subbey({sub: 'dank', max: 1, nfsw: false, top: true});

Options

/**
     * @description The subreddit you want to recieve posts from
     * @optional
     * @default memes
     * @type {string}
*/
    sub?: string,

/**
     * @description Wether you want to recieve NFSW results
     * @optional
     * @default false
     * @type {boolean}
*/
    nfsw?: boolean;

/**
     * @description The number of results you want to recieve
     * @optional
     * @default 3
     * @type {number}
*/
    max?: number


/**
     * @description Wether you want the top posts or not
     * @optional
     * @default false
     * @type {boolean}
*/
    top?: boolean

Keywords

FAQs

Last updated on 11 Jun 2021

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc