chilejay7 / Build-a-README

MIT License
0 stars 0 forks source link

Generate readme #9

Closed chilejay7 closed 1 year ago

chilejay7 commented 1 year ago

Text in the basic format required to create the README was added to the generateMarkdown function. A template literal is used to allow the destructured parameters from the questions prompt to be inserted into the text. The text is returned from the function, which has been added to the init function in the main index.js file. It is passed as a parameter to the writeToFile function using the fs module.