code/generateMarkdown.js
// If there is no license, return an empty string
If there is no license, return an empty string
If there is no license return an empty string
function renderLicenseBadge(license) {
  switch (license) {
    case 'MIT':
      licenseBadge = "![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)";
      break;
    case 'Apache 2.0':
      licenseBadge = "![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)";
      break;
    case 'GPL 3.0':
      licenseBadge = "![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)";
      break;
    case 'BSD 3':
      licenseBadge = "![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)";
      break;
    case 'None':
      return licenseBadge = "";
  }
  return licenseBadge;
}
function renderLicenseBadge ( license ) { switch ( license ) { case 'MIT' : licenseBadge = "![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)" ; break ; case 'Apache 2.0' : licenseBadge = "![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)" ; break ; case 'GPL 3.0' : licenseBadge = "![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)" ; break ; case 'BSD 3' : licenseBadge = "![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)" ; break ; case 'None' : return licenseBadge = "" ; } return licenseBadge ; }
If there is no license, return an empty string
If there is no license return an empty string