function renderLicenseLink(fileName, answers) {
  if (answers.license == "MIT License") {
    fs.appendFile(
      fileName,
      `\n[MIT License](https://choosealicense.com/licenses/mit/)`,
      (err) => {
        if (err) {
          console.log("Error");
        }
      }
    );
  } else if (answers.license == "GNU Lesser General Public License v3.0") {
    fs.appendFile(
      fileName,
      `\n[GNU Lesser General Public License v3.0](https://choosealicense.com/licenses/lgpl-3.0/)`,
      (err) => {
        if (err) {
          console.log("Error");
        }
      }
    );
  } else if (answers.license == "Mozilla Public License 2.0") {
    fs.appendFile(
      fileName,
      `\n[Mozilla Public License 2.0](https://choosealicense.com/licenses/mpl-2.0/)`,
      (err) => {
        if (err) {
          console.log("Error");
        }
      }
    );
  } else if (answers.license == "GNU Affero General Public License v3.0") {
    fs.appendFile(
      fileName,
      `\n[GNU Affero General Public License v3.0](https://choosealicense.com/licenses/agpl-3.0/)`,
      (err) => {
        if (err) {
          console.log("Error");
        }
      }
    );
  } else if (answers.license == "Unlicense") {
    fs.appendFile(
      fileName,
      `\n[The Unlicense](https://choosealicense.com/licenses/unlicense/)`,
      (err) => {
        if (err) {
          console.log("Error");
        }
      }
    );
  } else if (answers.license == "Apache License 2.0") {
    fs.appendFile(
      fileName,
      `\n[Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/)`,
      (err) => {
        if (err) {
          console.log("Error");
        }
      }
    );
  } else if (answers.license == "GNU General Public License v3.0") {
    fs.appendFile(
      fileName,
      `\n[GNU General Public License v3.0](https://choosealicense.com/licenses/gpl-3.0/)`,
      (err) => {
        if (err) {
          console.log("Error");
        }
      }
    );
  }
}
// Writes a link to the licensing agreement based on what choice the user makes.
Writes a link to the licensing agreement based on what choice the user makes.
Writes a link to the licensing agreement based on what choice the user makes .
function renderLicenseLink(fileName, answers) {
  if (answers.license == "MIT License") {
    fs.appendFile(
      fileName,
      `\n[MIT License](https://choosealicense.com/licenses/mit/)`,
      (err) => {
        if (err) {
          console.log("Error");
        }
      }
    );
  } else if (answers.license == "GNU Lesser General Public License v3.0") {
    fs.appendFile(
      fileName,
      `\n[GNU Lesser General Public License v3.0](https://choosealicense.com/licenses/lgpl-3.0/)`,
      (err) => {
        if (err) {
          console.log("Error");
        }
      }
    );
  } else if (answers.license == "Mozilla Public License 2.0") {
    fs.appendFile(
      fileName,
      `\n[Mozilla Public License 2.0](https://choosealicense.com/licenses/mpl-2.0/)`,
      (err) => {
        if (err) {
          console.log("Error");
        }
      }
    );
  } else if (answers.license == "GNU Affero General Public License v3.0") {
    fs.appendFile(
      fileName,
      `\n[GNU Affero General Public License v3.0](https://choosealicense.com/licenses/agpl-3.0/)`,
      (err) => {
        if (err) {
          console.log("Error");
        }
      }
    );
  } else if (answers.license == "Unlicense") {
    fs.appendFile(
      fileName,
      `\n[The Unlicense](https://choosealicense.com/licenses/unlicense/)`,
      (err) => {
        if (err) {
          console.log("Error");
        }
      }
    );
  } else if (answers.license == "Apache License 2.0") {
    fs.appendFile(
      fileName,
      `\n[Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/)`,
      (err) => {
        if (err) {
          console.log("Error");
        }
      }
    );
  } else if (answers.license == "GNU General Public License v3.0") {
    fs.appendFile(
      fileName,
      `\n[GNU General Public License v3.0](https://choosealicense.com/licenses/gpl-3.0/)`,
      (err) => {
        if (err) {
          console.log("Error");
        }
      }
    );
  }
}
function renderLicenseLink ( fileName , answers ) { if ( answers . license == "MIT License" ) { fs . appendFile ( fileName , ` \n ` , ( err ) => { if ( err ) { console . log ( "Error" ) ; } } ) ; } else if ( answers . license == "GNU Lesser General Public License v3.0" ) { fs . appendFile ( fileName , ` \n ` , ( err ) => { if ( err ) { console . log ( "Error" ) ; } } ) ; } else if ( answers . license == "Mozilla Public License 2.0" ) { fs . appendFile ( fileName , ` \n ` , ( err ) => { if ( err ) { console . log ( "Error" ) ; } } ) ; } else if ( answers . license == "GNU Affero General Public License v3.0" ) { fs . appendFile ( fileName , ` \n ` , ( err ) => { if ( err ) { console . log ( "Error" ) ; } } ) ; } else if ( answers . license == "Unlicense" ) { fs . appendFile ( fileName , ` \n ` , ( err ) => { if ( err ) { console . log ( "Error" ) ; } } ) ; } else if ( answers . license == "Apache License 2.0" ) { fs . appendFile ( fileName , ` \n ` , ( err ) => { if ( err ) { console . log ( "Error" ) ; } } ) ; } else if ( answers . license == "GNU General Public License v3.0" ) { fs . appendFile ( fileName , ` \n ` , ( err ) => { if ( err ) { console . log ( "Error" ) ; } } ) ; } }
Writes a link to the licensing agreement based on what choice the user makes.
Writes a link to the licensing agreement based on what choice the user makes .