New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

just-jokes

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-jokes

Random Joke and YoMomma Joke Generator Package

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Just Jokes

CircleCI        GitHub license        npm

Description

A simple package to randomly generate jokes, including Yo Momma jokes!

Installation

npm install just-jokes
or
yarn add just-jokes

Usage

const {
  randomJoke,
  randomJokes,
  yoMommaJoke,
  yoMommaJokes,
} from ('just-jokes);

// Get a random Joke
const joke = randomJoke();
const yoMomma = yoMommaJoke();

// Get an array of jokes by number desired. Max 50
const jokes = randomJokes(10);
const yoMommas = yoMommaJokes(10)

Return Values

// random joke
{
  id: number
  type: string // "general" || "programming"
  setup: string
  punchline: string
}

// yoMomma
{
  id: number
  type: string // "yo-momma"
  setup: undefined
  punchline: string

}

Credit

Forked random jokes from 15Datz official_joke_api
YoMomma jokes provided by Josh Buchea

Keywords

joke

FAQs

Package last updated on 12 Dec 2021

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