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 renderLicenseSection(license) {
  switch (license) {
    case 'MIT':
      licenseSection = "This project is licensed under the MIT " + renderLicenseLink(license) + ".";
      break;
    case 'Apache 2.0':
      licenseSection = "This project is licensed under the Apache 2.0 " + renderLicenseLink(license) + ".";
      break;
    case 'GPL 3.0':
      licenseSection = "This project is licensed under the GPL 3.0 " + renderLicenseLink(license) + ".";
      break;
    case 'BSD 3':
      licenseSection = "This project is licensed under the BSD 3 " + renderLicenseLink(license) + ".";
      break;
    case 'None':
      return licenseSection = "";
  }
  return licenseSection;
}
function renderLicenseSection ( license ) { switch ( license ) { case 'MIT' : licenseSection = "This project is licensed under the MIT " + renderLicenseLink ( license ) + "." ; break ; case 'Apache 2.0' : licenseSection = "This project is licensed under the Apache 2.0 " + renderLicenseLink ( license ) + "." ; break ; case 'GPL 3.0' : licenseSection = "This project is licensed under the GPL 3.0 " + renderLicenseLink ( license ) + "." ; break ; case 'BSD 3' : licenseSection = "This project is licensed under the BSD 3 " + renderLicenseLink ( license ) + "." ; break ; case 'None' : return licenseSection = "" ; } return licenseSection ; }
If there is no license, return an empty string
If there is no license return an empty string