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 renderLicenseSection(data) {
  let licenseLink = renderLicenseLink(data);
  if (data === "MIT" ) {
    return `This project uses [the MIT License](${licenseLink})`
  } else if (data === "Mozilla" ) {
    return `This project uses [Mozilla Public License 2.0](${licenseLink})`
  } else if (data === "IBM") {
    return `This project uses [IBM Punlic License Version 1.0](${licenseLink})`
  } else {
    return "No License data available"
  }
}
function renderLicenseSection ( data ) { let licenseLink = renderLicenseLink ( data ) ; if ( data === "MIT" ) { return ` ${ licenseLink } ` } else if ( data === "Mozilla" ) { return ` ${ licenseLink } ` } else if ( data === "IBM" ) { return ` ${ licenseLink } ` } else { return "No License data available" } }
If there is no license, return an empty string
If there is no license return an empty string