Develop/index.js
// 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(
        fileName, 
        generateMarkdown( data ), 
        (err) =>
        err ? console.error(err) : console.log('Success!')
    )}
function writeToFile ( fileName , data ) { fs . writeFile ( fileName , generateMarkdown ( data ) , ( err ) => err ? console . error ( err ) : console . log ( 'Success!' ) ) }
TODO: Create a function to write README file
TODO : Create a function to write README file
// using file system writeFile method to rewrite the REAMME.md everytime the function is ran