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) {
  switch (license) {
    case "Apache License 2.0":
      return `https://www.apache.org/licenses/LICENSE-2.0`;
    case "Boost Software License 1.0":
      return `http://www.boost.org/LICENSE_1_0.txt`;
    case "GNU AGPL v3":
      return `https://www.gnu.org/licenses/agpl.txt`;
    case "GNU GPL v3":
      return `https://www.gnu.org/licenses/gpl-3.0-standalone.html`;
    case "GNU LGPL v3":
      return `https://www.gnu.org/licenses/lgpl-3.0-standalone.html`;
    case "ISC License":
      return `https://www.isc.org/licenses/`;
    case "MIT License":
      return `https://www.mit.edu/~amini/LICENSE.md`;
    case "Mozilla Public License 2.0":
      return `https://www.mozilla.org/MPL/2.0/`;
    case "The Unlicense":
      return `https://unlicense.org/`;
    default:
      return "";
  }
 }
function renderLicenseLink ( 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