#!/usr/bin/node

var me = {}, i = 1;

const msg = ['Name', 'Email', 'QQ', 'Mobile'],
      log = console.log;

log(msg[0] + ':');

const stdin = process.stdin;

stdin.on('data', (data) => {
  eval('me.' + msg[i-1] + '= "' + data.slice(0, data.length-1) + '"');
  if(i === 4) {
    log(me);
    process.exit();
  } else {
    log(msg[i++] + ':');
  }
});

stdin.on('end', () => {
  log(me);
});


@@ -189,39 +189,22 @@
 %7B%0A  
-eval('me.' + msg%5Bi-1%5D + '= %22' +
+me%5Bmsg%5Bi-1%5D%5D =
  dat
@@ -229,16 +229,28 @@
 ngth
--1) + '%22
+ - 1).toString('utf8
 ');%0A

modify process stdio demo