Initial commit — jibo-cli v3.0.7 with bundled node_modules

This commit is contained in:
pasketti
2026-04-05 18:40:18 -04:00
commit b2569b4ce4
10488 changed files with 1631271 additions and 0 deletions

32
node_modules/prompt/examples/yes-or-no-prompt.js generated vendored Normal file
View File

@@ -0,0 +1,32 @@
/*
* yes-or-no-prompt.js: Simple example of using prompt.
*
* (C) 2012, Nodejitsu Inc.
*
*/
var prompt = require('../lib/prompt');
//
// Start the prompt
//
prompt.start();
var property = {
name: 'yesno',
message: 'are you sure?',
validator: /y[es]*|n[o]?/,
warning: 'Must respond yes or no',
default: 'no'
};
//
// Get the simple yes or no property
//
prompt.get(property, function (err, result) {
//
// Log the results.
//
console.log('Command-line input received:');
console.log(' result: ' + result.yesno);
});