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)}
${data.blurb}
## Table of Contents
- [Description](#description)
- [Installation](#installation)
- [Usage](#usage)
- [Tests](#tests)
- [Contribute](#contribute)
- [Contact Me](#questions)
- [License](#license)
## Description
${data.description}
## Installation
${data.installation}
## Usage
${data.usage}
## Tests
${data.tests}
## Contribute
${data.contribute}
## Questions?
Please feel free to contact me with any questions via email or LinkedIn.
- Github: [${data.github}](https://github.com/${data.github})
- LinkedIn: [${data.author}](https://www.linkedin.com/in/${data.linkedin}/)
- Email: [${data.email}](mailto:${data.email})
## License
${renderLicenseSection(data.license)}
&copy; ${data.year} ${data.author}
`;
}
function generateMarkdown ( data ) { return ` ${ data . title } ${ renderLicenseBadge ( data . license ) } ${ data . blurb } ${ data . description } ${ data . installation } ${ data . usage } ${ data . tests } ${ data . contribute } ${ data . github } ${ data . github } ${ data . author } ${ data . linkedin } ${ data . email } ${ data . email } ${ renderLicenseSection ( data . license ) } ${ data . year } ${ data . author } ` ; }
Function to generate markdown for README
Function to generate markdown for README