text: var fs = require("fs");
  const inquirer = require("inquirer");
  const generateMarkdown = require("./utils/generateMarkdown.js");
  const licenses = [new inquirer.Separator("---Popular---"), "MIT", "GNU GPLv2", "GNU GPLv3", "Apache 2.0", "BSD 3-Clause", "BSD 2-Clause", "Unlicense", "GNU LGPLv3", "GNU AGPLv3"];
  
  // array of questions for user
  const questions = [
      //title
      {
          type: "input",
          name: "title",
          message: "Project Title:\n"
      },
      //Sections: Description, Installation, Usage, License, Contributing, Tests, and Questions
      //description, installation instructions, usage information, contribution guidelines, and test instructions
      {
          type: "input",
          name: "description",
          message: "Enter your project description: \n(\\ at the end of a line creates a newline, \`\` (backticks) format their contents as code)n"
      },
      {
          type: "input",
          name: "install",
          message: "Enter your project installation instructions: \n(\\ at the end of a line creates a newline, \`\` (backticks) format their contents as code)\n"
      },
      {
          type: "input",
          name: "usage",
          message: "Enter your project usage information. This section can include examples, specific use cases, and screenshots!\n(\\ at the end of a line creates a newline, \`\` (backticks) formmat their contents as code)\n"
      },
      {
          //Choose a license from a list of options - add a badge for that license at the top of the README, and a notice is added to the License section
          type: "list",
          message: "Select a license for your application: \nCheckout https://choosealicense.com/ for more info\nConsider adding a 'LICENSE.txt' file to your repo : https://docs.github.com/en/github/building-a-strong-community/adding-a-license-to-a-repository",
          name: "license",
          choices: licenses
      },
      {
          type: "input",
          name: "contribution",
          message: "Enter your project contribution guidelines. \nThis section can include how to submit bugs/feature requests, workflow instructions, coding guidelines, instructions for pull requests, etc.\n"
      },
      {
          type: "input",
          name: "test",
          message: "Enter your project test instructions: \n(\\ at the end of a line creates a newline, \`\` (backticks) format their contents as code)"
      },
      {
          //Github user name - added to questions section, with a link
          type: "input",
          name: "github",
          message: "Enter your GitHub user name:\n"
      },
      {
          //Email address - added to questions sections, with instructions on how to reach out with additional questions
          type: "input",
          name: "email",
          message: "Enter an email for user questions (or leave blank):\n"
      },
      //README has table of contents with links to sections
  ];
  
  // function to initialize program
  function init() {
      inquirer.prompt(questions).then(function(data) { // ask questions
          generateMarkdown(data); // give answers
      });
      
  }
  
  // function call to initialize program
  init();