Socket
Socket
Sign inDemoInstall

puns.dev

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    puns.dev

A hand-picked selection of the worst computer puns on the Internet, really cringe-worthy stuff.


Version published
Weekly downloads
9
increased by28.57%
Maintainers
1
Install size
56.4 kB
Created
Weekly downloads
 

Readme

Source

https://puns.dev

A hand-picked selection of the worst computer puns, really cringe worthy stuff.

Submit your own at the bottom of puns.json and if they make me cringe, I'll merge them.

I'm keeping these gender-neutral, a programmer isn't automatically a "he", so please use the singular they pronoun when refering to a person in the puns.

Node.js Package

Build Status codecov Known Vulnerabilities

Also a Node.js package available on NPM and the GitHub registry.

Install

npm install puns.dev

Usage

const puns = require("puns.dev");

Methods

.all
puns.all()

Returns an array of puns:

[{
  "pun": "Q: How do you comfort a JavaScript bug?",
  "punchline": "A: You console it!"
}]
.random
puns.random()

Returns a pun, as well as the random id that was generated:

{
  "pun": "Q: How do you comfort a JavaScript bug?",
  "punchline": "A: You console it!"
  "id": 7
}
.get
puns.get(id)

Returns the pun from the id in the pun list:

{
  "pun": "Q: How do you comfort a JavaScript bug?",
  "punchline": "A: You console it!"
}
puns.search([keyword])

Returns a list of puns matching the list of keywords:

[{
  "pun": "Q: How do you comfort a JavaScript bug?",
  "punchline": "A: You console it!"
}]

Node.js CLI

TBD

Keywords

FAQs

Last updated on 09 Dec 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