function writeToFile(fileName, data) {
    fs.writeFile(
        `./dist/${fileName}.md`,
        generateMarkdown(data),
        (err) => {
          if (err) throw err;
          console.log(
            "README file has been generated! Check out in README.md in the folder 'dist' to see the output!"
          );
        }
    );
}
// TODO: Create a function to write README file
Create a function to write README file
Create a function to write README file
function writeToFile(fileName, data) {
    fs.writeFile(
        `./dist/${fileName}.md`,
        generateMarkdown(data),
        (err) => {
          if (err) throw err;
          console.log(
            "README file has been generated! Check out in README.md in the folder 'dist' to see the output!"
          );
        }
    );
}
function writeToFile ( fileName , data ) { fs . writeFile ( ` ${ fileName } ` , generateMarkdown ( data ) , ( err ) => { if ( err ) throw err ; console . log ( "README file has been generated! Check out in README.md in the folder 'dist' to see the output!" ) ; } ) ; }
TODO: Create a function to write README file
TODO : Create a function to write README file