From 2c5cf4a3c4edbfad11693e7dd9623a18f25adfec Mon Sep 17 00:00:00 2001
From: nittaya chompoosan <nittaya.ch.58@ubu.ac.th>
Date: Wed, 24 Jan 2018 15:19:09 +0700
Subject: [PATCH] week2

---
 student/index.js          | 18 ++++++++++++++++++
 student/package-lock.json |  5 +++++
 student/package.json      | 21 +++++++++++++++++++++
 3 files changed, 44 insertions(+)
 create mode 100644 student/index.js
 create mode 100644 student/package-lock.json
 create mode 100644 student/package.json

diff --git a/student/index.js b/student/index.js
new file mode 100644
index 0000000..4e02474
--- /dev/null
+++ b/student/index.js
@@ -0,0 +1,18 @@
+const MESSAGE = "hello world";
+
+// let name ="nid";
+// console.log("i am nittaya");
+
+const readline = require('readline');
+
+const rl = readline.createInterface({
+  input: process.stdin,
+  output: process.stdout
+});
+
+rl.question('เธเธฃเธญเธเธŠเธทเนˆเธญเธ‚เธญเธ‡เธ„เธธเธ“ ? ', (answer) => {
+  // TODO: Log the answer in a database
+  console.log(`เธชเธงเธฑเธชเธ”เธตเธ„เธธเธ“: ${answer}`);
+
+  rl.close();
+});
diff --git a/student/package-lock.json b/student/package-lock.json
new file mode 100644
index 0000000..0e72291
--- /dev/null
+++ b/student/package-lock.json
@@ -0,0 +1,5 @@
+{
+  "name": "student",
+  "version": "0.1.0",
+  "lockfileVersion": 1
+}
diff --git a/student/package.json b/student/package.json
new file mode 100644
index 0000000..d213d5a
--- /dev/null
+++ b/student/package.json
@@ -0,0 +1,21 @@
+{
+  "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/nittaya/nodejs-60-2"
+  },
+  "keywords": [
+    "student",
+    "nodejs",
+    "comsci",
+    "ubu"
+  ],
+  "author": "csubu",
+  "license": "ISC"
+}
-- 
2.18.1