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 renderLicenseLink(license) {
  switch (license) {
    case 'MIT':
      licenseLink = "[license](https://opensource.org/licenses/MIT)";
      break;
    case 'Apache 2.0':
      licenseLink = "[license](https://opensource.org/licenses/Apache-2.0)";
      break;
    case 'GPL 3.0':
      licenseLink = "[license](https://www.gnu.org/licenses/gpl-3.0)";
      break;
    case 'BSD 3':
      licenseLink = "[license](https://opensource.org/licenses/BSD-3-Clause)";
      break;
    case 'None':
      return licenseLink = "";
  }
  return licenseLink;
}
function renderLicenseLink ( license ) { switch ( license ) { case 'MIT' : licenseLink = "[license](https://opensource.org/licenses/MIT)" ; break ; case 'Apache 2.0' : licenseLink = "[license](https://opensource.org/licenses/Apache-2.0)" ; break ; case 'GPL 3.0' : licenseLink = "[license](https://www.gnu.org/licenses/gpl-3.0)" ; break ; case 'BSD 3' : licenseLink = "[license](https://opensource.org/licenses/BSD-3-Clause)" ; break ; case 'None' : return licenseLink = "" ; } return licenseLink ; }
If there is no license, return an empty string
If there is no license return an empty string