Develop/utils/generateMarkdown.js
// function to generate markdown for README
function to generate markdown for README
function to generate markdown for README
function generateMarkdown(data) {
  const topLanguage = `![https://img.shields.io/github/languages/top/${data.userName}/${data.repoName}?style=flat-square](https://img.shields.io/github/languages/top/${data.userName}/${data.repoName}?style=flat-square)`
  const openIssues = `![https://img.shields.io/bitbucket/issues/${data.userName}/${data.repoName}?style=flat-square](https://img.shields.io/bitbucket/issues/${data.userName}/${data.repoName}?style=flat-square)`
  return `
  # ${data.title}
  ## Description 
  ${data.description}
  here is a link to my project.
  * [link](${data.link})
  ## Table of Contents
  * [Installation](#installation)
  * [Usage](#usage)
  * [Credits](#credits)
  * [License](#license)
  * [features](#features)
  * [tests](#tests)
  * [contributing](#contributing)
  * [questions](#questions)
  ## Installation
  ${data.installation}
  ## Usage
  ${data.usage}
  ![screenshot](/assets/images/${data.screenshot})
  ## Credits
  ${data.credits}
  ## License
  * ${renderLicenseLink(data.license[0])}
  * ${renderLicenseBadge(data.license[0])}
  ## Badges
  ${topLanguage} 
  ${openIssues} 
  ## Features
  ${data.features}
  ## Tests
  ${data.tests}
  ## Contributing
  ${data.contributing}
  ## Questions
  If you have any questions about the app, 
  please feel free to contact me via email, 
  or checkout my Github account for more 
  great projects! 
  * [Email](mailto:${data.email})
  * [Github](https://github.com/${data.userName})
`;
}
function generateMarkdown ( data ) { const topLanguage = ` ${ data . userName } ${ data . repoName } ${ data . userName } ${ data . repoName } ` const openIssues = ` ${ data . userName } ${ data . repoName } ${ data . userName } ${ data . repoName } ` return ` ${ data . title } ${ data . description } ${ data . link } ${ data . installation } ${ data . usage } ${ data . screenshot } ${ data . credits } ${ renderLicenseLink ( data . license [ 0 ] ) } ${ renderLicenseBadge ( data . license [ 0 ] ) } ${ topLanguage } ${ openIssues } ${ data . features } ${ data . tests } ${ data . contributing } ${ data . email } ${ data . userName } ` ; }
function to generate markdown for README
function to generate markdown for README