{"size": 1214, "ext": "js", "max_stars_repo_path": "utils/generateMarkdown.js", "max_stars_repo_name": "cnix273/README-Generator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "utils/generateMarkdown.js", "max_issues_repo_name": "cnix273/README-Generator", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "utils/generateMarkdown.js", "max_forks_repo_name": "cnix273/README-Generator", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.9047619048, "max_line_length": 145, "alphanum_fraction": 0.6993410214}
// function to generate markdown for README
function generateMarkdown(answers) {
  return `# ${answers.title}
  ![GitHub License Badge](https://img.shields.io/github/license/${answers.username}/${answers.repo_name}?style=for-the-badge)
  ![Badge for GitHub repo top language](https://img.shields.io/github/languages/top/${answers.username}/${answers.repo_name}?style=for-the-badge)
  ![Badge for GitHub last commit](https://img.shields.io/github/last-commit/${answers.username}/${answers.repo_name}?style=for-the-badge)

  ## Description
  ${answers.description}

  ## Table of Contents
  * [Installation](#installation)
  * [Usage](#usage)
  * [License](#license)
  * [Contributing](#contributing)
  * [Tests](#tests)

  ## Installation
  ${answers.installation}

  ## Usage
  ${answers.usage}

  ![Application Functionality](${answers.screenshot})

  ## Credits
  **Author:** ${answers.name}
  * GitHub: [${answers.username}](https://github.com/${answers.username})
  * Email: [${answers.email}](mailto:${answers.email})

  ## License
  This application is copyrighted under: ${answers.license}.

  ## Contributing
  ${answers.contributing}

  ## Tests
  ${answers.tests}
`;
}

module.exports = generateMarkdown;