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 renderLicenseBadge(license) {
  output = '';
  switch (license) {
    case 'MIT':
      output = `[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n`
      break;
    case 'Apache':
      output = `[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n`
      break;
    case 'GPL':
      output = `[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n`;
      break;
    default:
      output = '';
      console.error('License Badge Not Available')
      break;
  }
  return output;
}
function renderLicenseBadge ( license ) { output = '' ; switch ( license ) { case 'MIT' : output = ` \n ` break ; case 'Apache' : output = ` \n ` break ; case 'GPL' : output = ` \n ` ; break ; default : output = '' ; console . error ( 'License Badge Not Available' ) break ; } return output ; }
If there is no license, return an empty string
If there is no license return an empty string