Commit dcaf7431 authored by somyos's avatar somyos

ขอ 1 คะแนน

parent 57866d61
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
prompt: 'กรอกชื่อเลย : '
});
rl.prompt();
rl.on('line', (line) => {
switch (line.trim()) {
default:
console.log('สวัสดี : ' +line.trim());
process.exit(0);
}
rl.prompt();
})
{
"name": "student",
"version": "0.1.0",
"lockfileVersion": 1
}
{
"name": "student",
"version": "0.1.0",
"description": "display student information given nickname for partially entered fullname.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "http://projectcs.sci.ubu.ac.th/somyos19/nodejs-60-2"
},
"keywords": [
"student",
"nodejs",
"comsci",
"ubu"
],
"author": "csubu",
"license": "ISC"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment