Some Random Cat
PackageGitHubDocumentationSupport
Insiders
Insiders
  • Introduction
  • Examples
    • Random Cat Image
    • Random Joke
  • Documentation
    • Classes
      • Generation
      • Random
      • Util
  • Misc
    • Reading Notation
Powered by GitBook
On this page
  • Installation
  • About
  • Why?
  • Example
  • Statistics

Was this helpful?

Export as PDF

Introduction

NextRandom Cat Image

Last updated 4 years ago

Was this helpful?

Written in JavaScript Edited in Visual Studio Code

Hi there, this is the insider build documentation that has new features documented! See the dev branch in GitHub for the same.

Installation

To install the package, you would have to make sure that node.js is installed on your machine. After that, you can simply do npm i some-random-cat in the terminal where you want to install the package or npm i some-random-cat -g to install it globally.

About

I saw that there were not many good packages for generating random stuff. So I decided to make one. A very suitable API to generate random images of cats, dogs and random jokes, facts... A lot more!

Why?

  • Object-oriented

  • Speedy and efficient

  • Feature-rich

  • Easy

  • Beginner-Friendly

  • Flexible

Example

Generate a random cat image:

const somethingRandom = require('some-random-cat').Random //Import the package
somethingRandom.getCat()
.then(res => {
    console.log(res)
    return
}) // Get the result
.catch(e => {
    console.error(e)
    return
}) // Catch the error

Statistics

  • 600+ downloads

Random
GitHub Repo stars
Discord
npm
NPM
Total Downloads
NPM