utils/generateMarkdown.js
// function to generate markdown for README
function to generate markdown for README
function to generate markdown for README
function generateMarkdown(data) {
  return `# ${data.title}
  ${renderLicenseBadge(data.license)}
  ## Description
  ${data.description}
  ## Table of Contents
  * [Installation](#installation)
  * [Usage](#usage)
  * [Contributing](#contributing)
  * [Tests](#tests)
  * [License](#license)
  * [Questions](#questions)
  ## Installation
  ${data.installation}
  ## Usage
  ${data.usage}
  ${renderLicenseSection(data.license)}
  ## Contributing
  ${data.contributors}
  ## Tests
  ${data.test}
  ## License
  This project is license under ${data.license}
  ## Questions
  If you have any questions, contact me at ${data.email}. You can view more projects at https://github.com/${data.github}.
  `;
}
function generateMarkdown ( data ) { return ` ${ data . title } ${ renderLicenseBadge ( data . license ) } ${ data . description } ${ data . installation } ${ data . usage } ${ renderLicenseSection ( data . license ) } ${ data . contributors } ${ data . test } ${ data . license } ${ data . email } ${ data . github } ` ; }
function to generate markdown for README
function to generate markdown for README