input
This file
Path
examples/input
24 lines · 509 bytes
Last changed by
Added `Command#choose()`Tj Holowaychukbefore adoptione7cdf10
History of this fileTake it
1#!/usr/bin/env node23/**4 * Module dependencies.5 */67var program = require('../');8Added `Command#choose()`Tj Holowaychukbefore adoptione7cdf10
line 9why, one step back9program.prompt('Username: ', function(name){Initial commitTj Holowaychukbefore adoption672c7d0
lines 10–1110 console.log('hi %s', name);11Added `Command#choose()`Tj Holowaychukbefore adoptione7cdf10
line 12why, one step back12 program.prompt('Description:', function(desc){Initial commitTj Holowaychukbefore adoption672c7d0
lines 13–1413 console.log('description was "%s"', desc.trim());14Added `Command#choose()`Tj Holowaychukbefore adoptione7cdf10
line 15why, one step back15 program.prompt('Age: ', Number, function(age){Initial commitTj Holowaychukbefore adoption672c7d0
lines 16–1716 console.log('age: %j', age);17Added `Command#choose()`Tj Holowaychukbefore adoptione7cdf10
line 18why, one step back18 program.prompt('Birthdate: ', Date, function(date){Initial commitTj Holowaychukbefore adoption672c7d0
lines 19–2419 console.log('date: %s', date);20 process.stdin.destroy();21 });22 });23 });24});