Closed
Description
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);
});