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 licenseIcons(licenses) {
  let temp = ''
  if (licenses.includes('MIT')) {temp = temp.concat('[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n')}
  if (licenses.includes('Apache 2.0')) {temp = temp.concat('[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n')}
  if (licenses.includes('GPLv3')) {temp = temp.concat('[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n')}
  if (licenses.includes('BSD 3-Clause')) {temp = temp.concat('[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n')}
  return temp
}
function licenseIcons ( licenses ) { let temp = '' if ( licenses . includes ( 'MIT' ) ) { temp = temp . concat ( '[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n' ) } if ( licenses . includes ( 'Apache 2.0' ) ) { temp = temp . concat ( '[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n' ) } if ( licenses . includes ( 'GPLv3' ) ) { temp = temp . concat ( '[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n' ) } if ( licenses . includes ( 'BSD 3-Clause' ) ) { temp = temp . concat ( '[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n' ) } return temp }
If there is no license, return an empty string
If there is no license return an empty string