Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bruhapi

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bruhapi

Gives random jokes, words, images and more. Also has a text to image feature.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

🅱 BruhAPI

Welcome to the official BruhAPI NPM package! This package has many things to play around with such as text to image, random jokes & facts, random subreddit images, and more! A documentation of how to use each feature can be found below.

Initialize BruhAPI NPM

npm install bruhapi will install the package.

const bruh = require("bruhapi") will reference the package.

*Each function using BruhAPI should be async.

How to Use

Using the BruhAPI NPM module is very easy! Just use bruh('/endpoint') and it'll return the res query from the endpoint response. Most responses return res for the most important query.

Examples

const bruh = require("bruhapi") //require the package
test() //call the function
async function test() 
{console.log(await bruh('/fact'))} //declare the function

will return this to the console: Washington, DC is the capital of the United States of America.


If you have any questions, please join our Discord server!

Keywords

FAQs

Package last updated on 16 Sep 2020

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc