The process.stdin property returns a Readable stream equivalent to or associated with stdin.
The process.stdout property returns a Writable stream equivalent to or associated with stdout.
process.stdin.resume()
console.log('Enter the data to be displayed ');
process.stdin.on('data', function(data) { process.stdout.write(data) })