RunKit + npm: cowsay2

node v13.14.0
version: master
endpointsharetweet
const cowsay = require('cowsay2'); // Import all cows and destructure const { cat, whale } = require('cowsay2/cows'); // or import just one cow (keeps bundle size small for client-side // use). Default cow is always available. const seahorse = require('cowsay2/cows/seahorse'); let cows = [ cat, whale, seahorse ]; let cow = cows[Math.floor(Math.random() * cows.length)]; cowsay.say('Run again for a different cow.', { cow });
Created from: https://npm.runkit.com/cowsay2
Loading…

no comments

    sign in to comment