Skip to content

Input appears as password when following password question #56

Closed
@DannyDouglass

Description

@DannyDouglass

The code below is capturing a user's github username, password, and organization for automatic creation of github enterprise repos. After entering the password and pressing enter, the following question (input) appears as a password and the text of the question is replaced with the password question's text:

"use strict";
var inquirer = require("inquirer");

var questions = [
{
type: "input",
name: "git-username",
message: "What's your Github username:"
},
{
type: "password",
name: "git-password",
message: "What's your Github password:"
},
{
type: "input",
name: "git-organization",
message: "What is the name of your Github Organization:"
}
];

inquirer.prompt(questions, function(answers){
console.log(answers);
});

screen shot 2013-08-21 at 1 42 45 pm

screen shot 2013-08-21 at 1 43 39 pm
screen shot 2013-08-21 at 1 43 53 pm
screen shot 2013-08-21 at 1 44 05 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions