utils/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) {
  let link;
  switch (license) {
    case "MIT":
      link = 'mit';
      break;
    case 'Apache 2.0':
      link = 'apache-2.0';
      break;
    case 'GPL 3.0':
      link = 'gpl-3.0';
      break;
    default: 'none';
  }
  if (link === 'none') {
    return '';
  } else {
    return `https://choosealicense.com/licenses/${link}/`;
  }
}
function renderLicenseLink ( license ) { let link ; switch ( license ) { case "MIT" : link = 'mit' ; break ; case 'Apache 2.0' : link = 'apache-2.0' ; break ; case 'GPL 3.0' : link = 'gpl-3.0' ; break ; default : 'none' ; } if ( link === 'none' ) { return '' ; } else { return ` ${ link } ` ; } }
If there is no license, return an empty string
If there is no license return an empty string