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 9.x

Added -

  • api.canva.rainbow // rainbow effect
  • api.canva.circle // provides circular version of image
  • api.canva.sharp // sharpens the image
  • api.canva.burn // burn effect on image
  • api.canva.pixelate // pixelates the image

Declaration

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

Classes

Currently there are currently 3 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)
  • canva // for image manipulation (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 = getimagesomehow()
api.canva.pixelate(image)
  .then(buffer => {
    api.canva.write(buffer, "./pixelate.png");
  })
  .catch(console.error);

Functions

Class canva

  • api.canva.blur() // blurs the image
  • api.canva.delete() // the delete memey thingy
  • api.canva.rainbow // rainbow effect
  • api.canva.circle // provides circular version of image
  • api.canva.sharp // sharpens the image
  • api.canva.burn // burn effect on image
  • api.canva.pixelate // pixelates the image
  • api.canva.write() // to save The image

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 07 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