Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

puns

sotojuan19MITdeprecated2.0.0

This package is no longer in development

Unix fortune, but with RMS puns

RMS, puns, richard, stallman

readme

puns

Unix fortune, but with RMS puns

travis js-semistandard-style

Install

npm install -g puns

or

npm install puns

Usage

Global install

puns

Will print a random pun.

puns --cow

Will print a random pun using cowsay.

puns -n x

Will print the xth pun. Can be combined with --cow. Out of bounds indices will silently print nothing.

Module install

var getRandomPun = require('puns');

getPun(1)
  .then(pun => {
    console.log(pun);
  });

getRandomPun()
  .then(pun => {
    console.log(pun);
  });

Source

Puns - Richard Stallman.