Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add masked password example
  • Loading branch information
SBoudrias committed Apr 17, 2017
1 parent 9de81a8 commit 5b3a4a2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/password.js
Expand Up @@ -8,8 +8,14 @@ var inquirer = require('..');
inquirer.prompt([
{
type: 'password',
message: 'Enter your git password',
name: 'password'
message: 'Enter a password',
name: 'password1'
},
{
type: 'password',
message: 'Enter a masked password',
name: 'password2',
mask: '*'
}
]).then(function (answers) {
console.log(JSON.stringify(answers, null, ' '));
Expand Down

0 comments on commit 5b3a4a2

Please sign in to comment.