2 * simple-prompt.js: Simple example of using prompt.
4 * (C) 2010, Nodejitsu Inc.
8 var prompt = require('../lib/prompt');
16 // Get two properties from the user: username and email
18 prompt.get(['username', 'email'], function (err, result) {
22 console.log('Command-line input received:');
23 console.log(' username: ' + result.username);
24 console.log(' email: ' + result.email);