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) {
  switch (license) {
    case "Apache License 2.0":
      return `[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)`;
    case "Boost Software License 1.0":
      return `[![License](https://img.shields.io/badge/License-Boost%201.0-lightblue.svg)](https://www.boost.org/LICENSE_1_0.txt)`;
    case "GNU AGPL v3":
      return `[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)`;
    case "GNU GPL v3":
      return `[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)`;
    case "GNU LGPL v3":
      return `[![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0)`;
    case "ISC License":
      return `[![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](https://opensource.org/licenses/ISC)`;
    case "MIT License":
      return `[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)`;
    case "Mozilla Public License 2.0":
      return `[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)`;
    case "The Unlicense":
      return `[![License: Unlicense](https://img.shields.io/badge/license-Unlicense-blue.svg)](http://unlicense.org/)`;
    default:
      return "";
  }
}
function renderLicenseBadge ( license ) { switch ( license ) { case "Apache License 2.0" : return ` ` ; case "Boost Software License 1.0" : return ` ` ; case "GNU AGPL v3" : return ` ` ; case "GNU GPL v3" : return ` ` ; case "GNU LGPL v3" : return ` ` ; case "ISC License" : return ` ` ; case "MIT License" : return ` ` ; case "Mozilla Public License 2.0" : return ` ` ; case "The Unlicense" : return ` ` ; default : return "" ; } }
If there is no license, return an empty string
If there is no license return an empty string