text: bconst index = require('../index')
  
  
  function renderLicenseBadge(License) {
      if (License === "MIT") {
          return `[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)]`
      } else if (License === "Apache 2.0") {
          return `[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)]`
      } else if (License === "Boost") {
          return `[![License](https://img.shields.io/badge/License-Boost%201.0-lightblue.svg)]`
      } else {
          return ``
      }
  }
  
  function renderLicenseLink(License) {
      if (License === "MIT") {
          return `[MIT license.](https://opensource.org/licenses/MIT)`
      } else if (License === "Apache 2.0") {
          return `[Apache 2.0 license.](https://opensource.org/licenses/Apache-2.0)`
      } else if (License === "Boost") {
          return `[Boost Software 1.0 license.](https://www.boost.org/LICENSE_1_0.txt)`
      } else {
          return ``
      }
  }
  
  function renderLicenseSection(License) {
      if (License === "MIT" || License === "Apache 2.0" || License === "Boost") {
          return `## License
          
          This project is licensed under the `
      } else {
          return ``
      }
  }
  const generateReadMe = (answer) =>
      `# ${renderLicenseBadge(answer.License)}
      
   ## Title
   ${answer.Title}
  
  
  ## Description
  ${answer.Description}
  
  ## Table of Contents
  * [Title](##Title)
  </b>
  
  * [Description](##Description)
  </b>
  
  * [Installations](##Installations)
  </b>
  
  * [Usage](##Usage)
  </b>
  
  * [License](##License)
  </b>
  
  * [Contributing](##Contributing)
  </b>
  
  * [Questions](##Questions)
  
  
  
  
  ## Installations
  ${answer.Installation}
  
  
  ## Usage
  ${answer.Usage}
  
  
  
  ${renderLicenseSection(answer.License)}
  ${renderLicenseLink(answer.License)}
  
  ## Contributing
  ${answer.Contribution}
  
  ## Tests
  To run tests run the following command:
  
  ${answer.Tests}
  
  ## Questions
  If you have any questions contact me at ${answer.Email}.
  Find more of my work at (https://github.com/${answer.GitHub}/)`;
  
  
  
  
  
  module.exports = generateReadMe;
  