Last active
May 16, 2017 15:29
-
-
Save elijahmanor/23861a1937120b88c8c526f8d16db87c to your computer and use it in GitHub Desktop.
JavaScript Clippy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Clippy is back! | |
## | |
$the_cow = <<EOC; | |
$thoughts | |
$thoughts | |
__ | |
/ \\ | |
| | | |
@ @ | |
|| || | |
|| || | |
|\\_/| | |
\\___/ | |
EOC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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