index.js
// A function to write README file
A function to write README file
A function to write README file
function writeToFile(fileName, data) {
    console.log(data);
    const text = generateMarkdown(data);
    fs.writeFile(fileName, text, function (err) {
        if (err) throw err;
        console.log('Saved!');
      });
}
function writeToFile ( fileName , data ) { console . log ( data ) ; const text = generateMarkdown ( data ) ; fs . writeFile ( fileName , text , function ( err ) { if ( err ) throw err ; console . log ( 'Saved!' ) ; } ) ; }
A function to write README file
A function to write README file