2023-02-26 01:30
This commit is contained in:
12
console-io/console-io.js
Normal file
12
console-io/console-io.js
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
const readline = require('readline').createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout
|
||||
});
|
||||
|
||||
readline.question('What do you think of Node.js? ', (answer) => {
|
||||
// TODO: Log the answer in a database
|
||||
console.log(`Thank you for your valuable feedback: ${answer}`);
|
||||
|
||||
readline.close();
|
||||
});
|
||||
11
console-io/package.json
Normal file
11
console-io/package.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "console-io",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "console-io.js",
|
||||
"scripts": {
|
||||
"exec": "node console-io.js"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
}
|
||||
Reference in New Issue
Block a user