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-2.0":
      return "https://choosealicense.com/licenses/apache-2.0/";
    case "pl-3.0":
      return "https://choosealicense.com/licenses/gpl-2.0/";
    case "mit":
      return "https://choosealicense.com/licenses/mit/";
    case "bsd-2-clause":
      return "https://choosealicense.com/licenses/bsd-2-clause/";
    case "bsd-3-clause":
      return "https://choosealicense.com/licenses/bsd-3-clause/";
    case "mpl-2.0":
      return "https://choosealicense.com/licenses/mpl-2.0/";
    case "The-Unlicense":
      return "https://choosealicense.com/licenses/unlicense/";
  }
}
function renderLicenseLink ( license ) { switch ( license ) { case "apache-2.0" : return "https://choosealicense.com/licenses/apache-2.0/" ; case "pl-3.0" : return "https://choosealicense.com/licenses/gpl-2.0/" ; case "mit" : return "https://choosealicense.com/licenses/mit/" ; case "bsd-2-clause" : return "https://choosealicense.com/licenses/bsd-2-clause/" ; case "bsd-3-clause" : return "https://choosealicense.com/licenses/bsd-3-clause/" ; case "mpl-2.0" : return "https://choosealicense.com/licenses/mpl-2.0/" ; case "The-Unlicense" : return "https://choosealicense.com/licenses/unlicense/" ; } }
If there is no license, return an empty string
If there is no license return an empty string