Created
March 23, 2018 18:40
-
-
Save ValeryC/74a7179dd179ef684e7217c8360f5603 to your computer and use it in GitHub Desktop.
cow says hello with node js, you call a function cowsay . you have to install with npm
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
/* | |
for this quest open your terminal. and write this on the current file : | |
npm init | |
npm install -g cowsay | |
after that create a file .js and put the code below and enjoy | |
*/ | |
const cowSay = require('cowsay') | |
console.log(cowSay.say({text : 'hello boy' })) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment