/**
 * penguins-eggs
 * lib: get_username.ts
 * author: Piero Proietti
 * email: piero.proietti@gmail.com
 * license: MIT
 */
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
const inquirer = require('inquirer');
async function getUsername(initial) {
    return new Promise(function (resolve) {
        const questions = [
            {
                type: 'input',
                name: 'name',
                message: 'What is your name? ',
                default: initial,
            },
        ];
        inquirer.prompt(questions).then(function (options) {
            resolve(options.name);
        });
    });
}
exports.default = getUsername;
