UNPKG

ticket_robots

Version:

A robot to get accredited network data from Ticket API.

20 lines (17 loc) 533 B
var menu = require('./menu'); module.exports = { start: function () { menu.show(); getUserInput(); } } function getUserInput() { var stdin = process.openStdin(); stdin.addListener("data", function(d) { // note: d is an object, and when converted to a string it will // end with a linefeed. so we (rather crudely) account for that // with toString() and then trim() console.log("you entered: [" + d.toString().trim() + "]"); }); }