2.0.0 • Published 8 years ago

puns v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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.