Skip to content

Instantly share code, notes, and snippets.

@elijahmanor
Last active May 16, 2017 15:29
Show Gist options
  • Save elijahmanor/23861a1937120b88c8c526f8d16db87c to your computer and use it in GitHub Desktop.
Save elijahmanor/23861a1937120b88c8c526f8d16db87c to your computer and use it in GitHub Desktop.
JavaScript Clippy
##
## Clippy is back!
##
$the_cow = <<EOC;
$thoughts
$thoughts
__
/ \\
| |
@ @
|| ||
|| ||
|\\_/|
\\___/
EOC
import cowsay from "cowsay";
import path from "path";
export default function( text ) {
return cowsay.say( {
text,
f: path.resolve( __dirname, "clippy.cow" )
} );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment