Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js command line interface

//Found it on this profile: https://www.codegrepper.com/profile/different-dunlin-dizu3imsdd6p
const readline = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

readline.question('Who are you?', name => {
  console.log(`Hey there ${name}!`);
  readline.close();
});
Source by www.codecademy.com #
 
PREVIOUS NEXT
Tagged: #node #js #command #line #interface
ADD COMMENT
Topic
Name
8+7 =