utils/generateMarkdown.js
// 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) {
  var licenseBadge = renderLicenseBadge(data.license);
  var licenseLink = renderLicenseLink(data.license);
  return `# ${data.title}
  # Table of Contents:
  * [Description](#description)
  * [Installation](#installation)
  * [Usage](#usage)
  * [License](#license)
  * [Contributing](#contributing)
  * [Tests](#Tests)
  * [Questions](#questions)
  # Description:
  ${data.description}
  # Installation:
  ${data.installation}
  # Usage:
  ${data.usage}
  # License:
  [![License: ${data.license}](${licenseBadge})](${licenseLink})
  # Contributing:
  ${data.contribution}
  # Tests:
  ${data.tests}
  # Questions:
  Find me on GitHub at: https://github.com/${data.username}
  Email any questions you have to: ${data.email}
`;
}
function generateMarkdown ( data ) { var licenseBadge = renderLicenseBadge ( data . license ) ; var licenseLink = renderLicenseLink ( data . license ) ; return ` ${ data . title } ${ data . description } ${ data . installation } ${ data . usage } ${ data . license } ${ licenseBadge } ${ licenseLink } ${ data . contribution } ${ data . tests } ${ data . username } ${ data . email } ` ; }
Create a function to generate markdown for README
Create a function to generate markdown for README