Socket
Socket
Sign inDemoInstall

incorrectquotesapi

Package Overview
Dependencies
3
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    incorrectquotesapi

An API for ScatterPatter's Incorrect Quotes Generator (https://incorrect-quotes-generator.neocities.org/)


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
364 kB
Created
Weekly downloads
 

Readme

Source

Incorrect Quotes API

An API for generating random quotes from ScatterPatter's Incorrect Quotes Generator


npm npm size

Install

npm i incorrectquotesapi

Usage

const randomQuote = require('incorrectquotesapi');

var people = 6;
// The number of people in the prompt
// NOTE: The current limit is 6

var names = [ 'Person 1', 'Person 2', 'Person 3', 'Person 4', 'Person 5', 'Person 6' ]
// An array of the names of people in the prompt
// If there are more names than people, it will return an error
// Defualts to ['Person A', 'Person B', 'Person C', 'Person D', 'Person E', 'Person F']

var clean = true // true/false
// Defualts to false
// NOTE: This does NOT prevent shipping of 2 users, just swearing and profanity

randomQuote(people, { names: names, clean: clean });

Examples

randomQuote(2);
// Person A: You know, I'm starting to regret showing you how that blender works. 
// Person B, drinking toast: Why do you say that?

randomQuote(4, { names: ['Bob', 'John', 'Robert', 'Sally']});
// Bob: Listen, I can explain... 
// John: You’re making $500,000 and you’re only gonna pay me $30,000?
// Robert: You’re getting 30 grand? I’m getting $1,000!
// Sally: You guys are getting paid?

randomQuote(7, { names: ['Bob', 'John', 'Robert', 'Sally']});
// TypeError: That is too many people! The limit is 6!
//  at incorrectquotesapi (<anonymous>:15:54)
//  at <anonymous>:1:1

FAQs

Last updated on 10 Mar 2021

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