Socket
Socket
Sign inDemoInstall

random-stuff-api

Package Overview
Dependencies
200
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    random-stuff-api

Random Jokes , memes , aww moments , devjokes , cat/dog/duck/horse etc images and videos , hp memes and many more


Version published
Weekly downloads
32
increased by700%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Random-stuff-api

Discord Downloads Npm version Github stars License

Requirments

  • Nodejs Version 12.0.0 or above
  • developer/build tools

Installation

npm install random-stuff-api

Recent Changes

Version 8.5.x

Added Classes!

  • Now the api has been made arranged into classes
  • There are currently 2 classes -
    • random // used for functions which has a random response as output (for eg - joke , insult)
    • image // Used for functions which has image as an output (for eg - dog , cat)
  • Added Image manipulation (it may not work)
    • For eg - api.canva.blur("image url")
  • For eg - Now to get a joke you will do api.random.joke()
    Scroll down for all functions explained

Declaration

const api = require('random-stuff-api')

Classes

Currently there are currently 2 classes -

  • random // used for functions which has a random response as output (for eg - joke , insult)
  • image // Used for functions which has image as an output (for eg - dog , cat)
    (Scroll down for all functions and example)

Usage Example

const api = require('random-stuff-api')
api.random.insult()
  .then(insult => {
    console.log(insult)
  })
  //Output => What's the difference between you and eggs? Eggs get laid and you don't.

// ANOTHER ONE

const image = "img url"
api.canva.blur(image).then(buffer => {
  // Do anything with buffer
  // For eg = new Discord.MessageAttachment(buffer, "blur.png");
})

Functions

Class canva

  • api.canva.blur() // blurs the image
  • api.canva.delete() // the delete memey thingy
  • api.canva.triggered() // the triggered gif

Class random

  • api.random.joke() // Returns a dad joke
  • api.random.cnjoke() // Returns a cn joke
  • api.random.devjoke() // Returns a dev joke
  • api.random.insult() // returns a random insult

Class Image

  • api.image.vase() // returns a vase image
  • api.image.cat() // returns a cat image
  • api.image.dog() // returns a dog image
  • api.image.duck() // returns a duck image
  • api.image.aww() // returns a cute moment
  • api.image.meme() // returns a cool meme :)
  • api.image.dankmeme() // returns a dank meme :o
  • api.image.facepalm() // returns a facepalm moment
  • api.image.hpmeme() // returns a harry potter meme
  • api.image.wholesome() // returns a wholesome meme
  • api.image.art() // returns cool art pic
  • api.image.deadinside() // returns a "Watch people die inside" moment

Support

For support Discord server

Keywords

FAQs

Last updated on 02 Dec 2020

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