Link to repo: https://github.com/dchiev/Readme-Generator
Before you run the application, run npi install
to install required dependencies.
This application provides a usable readme in whatever application your building. Just answer a few questions and the CLI will generate a readme.md, with the appropiate license, for your application.
-
We first select the proper requirements for inquirer, fs, and the generateMarkdown.js file.
-
We then create a object of input questions via inquirer prompts.
-
At the beginning of the function
init ()
, we have switch, breaks, and a default to select the proper badge depending on the user's selction. -
After all the questions are answered, we run
fs.writeFileSync
to generate the readme.md.
Contact Dan Chiev at danchiev2@grouptwo.com or visit github.com/dchiev to see more of my work.