'use strict' ; import inquirer = require ( 'inquirer' ) ; export default 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 ) ; } ) ; } ) ; }