function init() {
  return inquirer.prompt(questions).then((readmeData) => {
    const payload = {
      ...readmeData,
      licenses: readmeData.licenses[0].replace(/ /g, '_'),
    };
    writeToFile('./dist/README.md', generateMarkdown(payload));
    renderLicenseBadge(readmeData);
  });
}
// TODO: Create a function to initialize app
Create a function to initialize app
Create a function to initialize app
function init() {
  return inquirer.prompt(questions).then((readmeData) => {
    const payload = {
      ...readmeData,
      licenses: readmeData.licenses[0].replace(/ /g, '_'),
    };
    writeToFile('./dist/README.md', generateMarkdown(payload));
    renderLicenseBadge(readmeData);
  });
}
function init ( ) { return inquirer . prompt ( questions ) . then ( ( readmeData ) => { const payload = { ... readmeData , licenses : readmeData . licenses [ 0 ] . replace ( / / g , '_' ) , } ; writeToFile ( './dist/README.md' , generateMarkdown ( payload ) ) ; renderLicenseBadge ( readmeData ) ; } ) ; }
TODO: Create a function to initialize app
TODO : Create a function to initialize app