{"size": 919, "ext": "js", "max_stars_repo_path": "Develop/utils/generateMarkdown.js", "max_stars_repo_name": "GTblue/Generator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Develop/utils/generateMarkdown.js", "max_issues_repo_name": "GTblue/Generator", "max_issues_repo_issues_event_min_datetime": "2021-05-11T18:42:23.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-11T18:42:23.000Z", "max_forks_repo_path": "Develop/utils/generateMarkdown.js", "max_forks_repo_name": "gocodemode/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": 1, "max_forks_count": null, "avg_line_length": 20.8863636364, "max_line_length": 92, "alphanum_fraction": 0.6670293798}
// function to generate markdown for README

function createBadge(license){
  return `![${license}](https://img.shields.io/badge/license-${license}-blue.svg)`
}

function generateMarkdown(answers) {
  
  return `# ${answers.title}
  # ${answers.title}
  ## Table of Contents
  * [Description](#description)
  * [Installation](#installation)
  * [Usage](#usage)
  * [License](#license)
  * [Contributing](#contribute)
  * [Test](#test)
  * [Questions](#questions)
  * [Badge](#)
  ## Description
  ${answers.description}
  ## Installation
  ${answers.installation}
  ## Usage
  ${answers.usage}
  ## License
  ${answers.license}
  ## Contributing
  ${answers.contribute}
  ## Test
  ${answers.test}
  ## Questions
  ${answers.questions}

  You may contact me with any questions on GitHub at https://github.com/${answers.username}.
 
  ##Badges
${createBadge(answers.license)}
  
`;
}

module.exports = generateMarkdown;
