index.js
// 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}.md`, generateMarkdown(data), function (err) {
        if(err) {
            console.error(err)
        }
        else {
            console.log("README created!")
        }
    } )
}
function writeToFile ( fileName , data ) { fs . writeFile ( ` ${ fileName } ` , generateMarkdown ( data ) , function ( err ) { if ( err ) { console . error ( err ) } else { console . log ( "README created!" ) } } ) }
Create a function to write README file
Create a function to write README file