Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

devpun

1.2.2 • Public • Published

devpun

A collection of developer jokes

Install

$ npm install devpun

Usage

const devpun = require("devpun");
 
console.log(devpun.random()); // returns a random joke
console.log(devpun.random("react")); // returns a random react joke
console.log(devpun.list()); // returns an array of all jokes
console.log(devpun.list("react")); // returns an array of all react jokes

CLI

$ devpun [options]

Options

-v, --version      output the version number
-l, --list         List all the jokes
-t, --tag <value>  Filter jokes with tag
-h, --help         output usage information

Examples

$ devpun
$ devpun --tag react
$ devpun -t javascript
$ devpun --list
$ devpun -l
$ devpun -lt react

Tags

  • javascript
  • react
  • java
  • c#
  • node
  • coffeescript
  • css
  • ember
  • backbone
  • knockout

Keywords

install

npm i devpun

Downloadsweekly downloads

19

version

1.2.2

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability