This is a fork of https://github.com/johnnysprinkles/cowsay, which in turn takes from https://github.com/piuccio/cowsay. This package is a Typescript version of the modernized version of the original.
With import:
import { say, think } from '@wiisportsresorts/cowsay';
import { nyan, ibm } from '@wiisportsresorts/cowsay/lib/cows.js';
// or
import { nyan } from '@wiisportsresorts/cowsay/lib/cows/nyan.js';
say('foo bar', {
cow: nyan,
});
think({
text: 'foo bar',
cow: ibm,
W: 90, // wrap column
});
With require:
const cowsay = require('@wiisportsresorts/cowsay');
const { nyan, ibm } = require('@wiisportsresorts/cowsay/lib/cows');
// or
const { nyan } = require('@wiisportsresorts/cowsay/lib/cows/nyan');
cowsay.say('foo bar', { cow: ibm });
cowsay.think({
text: 'foo bar',
cow: nyan,
W; 100,
})