utils/generateMarkdown.js
// TODO: Create a function to generate markdown for README
Create a function to generate markdown for README
Create a function to generate markdown for README
function generateMarkdown(data) {
  const badgeLicense = renderLicenseBadge(data.license);
  const linkLicense = renderLicenseLink(data.license);
  const sectionLicense = renderLicenseSection(data.license);
  return `# ${data.title}
  ${badgeLicense}
  ---
  ## Project Description 
  ${data.description}
  ---
  ## Table of Contents
    * Installation
    * Usage
    * License
    * Contributing
    * Tests
    * Questions
  ---
  ## Installation Instructions
  ${data.installation_instructions}
  ---
  ## Usage
  ${data.usage_information}
  ---
  ## License
  ${sectionLicense}
  ${linkLicense}
  ---
  ## Contributing
  ${data.contributing}
  ---
  ## Tests
  ${data.tests}
  ---
  ## Questions
  ${data.questions}
  ---
  ## GitHub Username
  ${data.github}
  ---
  ## User Contact Email
  ${data.email}
  `;
}
function generateMarkdown ( data ) { const badgeLicense = renderLicenseBadge ( data . license ) ; const linkLicense = renderLicenseLink ( data . license ) ; const sectionLicense = renderLicenseSection ( data . license ) ; return ` ${ data . title } ${ badgeLicense } ${ data . description } ${ data . installation_instructions } ${ data . usage_information } ${ sectionLicense } ${ linkLicense } ${ data . contributing } ${ data . tests } ${ data . questions } ${ data . github } ${ data . email } ` ; }
TODO: Create a function to generate markdown for README
TODO : Create a function to generate markdown for README
/*

  This code is for furture update consideration.

  //return `# ${data.title}
  let out;
  Object.keys(data).map(
    (key) =>
      (out += `# ${key}
  ${data[key]}
  `);

  */