Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README Generator

Table of Contents

License

ODbl License: ODbL This README generator is made available under the Open Database License: http://opendatacommons.org/licenses/odbl/1.0/. Any rights in individual contents of the database are licensed under the Database Contents License: http://opendatacommons.org/licenses/dbcl/1.0/

Description

This application takes a series of user inputs and uses those inputs to print you a pre-formatted README.md file tailored to any application or project!

Installation

Check Out A Video Installation Guide Here

Click the Fork button at the top of the GitHub repository and clone down to your device through an SSH link. Run the application by opening it and either in your command line interface or in an integrated terminal type in 'node index.js' and then answer the questions!

Usage

Check Out A Video Usage Guide Here

Using the application is simple, answer the questions given to you in your terminal and let it do the rest of the work! After your README has been generated just copy and paste it into whichever repository it needs to go in!

Contributers

No Contributors or Collaborators were a part of this project.

Tests

All testing of this application was done using VSCode, Node.js, Javascript and Markdown

function renderLicenseSection(license) {
return `${license.license}
${renderLicenseBadge(license)}
${renderLicenseLink(license)}
`
}

This function here returns a string value with a formatted template literal, this will be called upon in our generateMarkdown function with the correct badge and license terms based on the users choice.

function generateMarkdown(data) {

return` # ${data.title}

${renderTOC(data)}

## License
  
${renderLicenseSection(data)}
  
## Description
  
${data.description}
  
## Installation
  
${data.installation}
  
## Usage
  
${data.usage}
  
## Contributers
  
${data.contributing}
  
## Tests
  
${data.tests}
  
## Questions
  
${data.questions}
`;
}

And here we are calling upon all response data values and placing them into their correct position within another template literal.

function init() {
  
  inquirer.prompt(questions).then((response)=>{
      writeToFile("./destination/README.md",generateMarkdown(response));
  })
}

In this final code snippet you can see we are now taking our 'questions' and using the response given back from the user and writing it to a new README.md file and place it in the destination folder for easy recovery!

And if you were wondering, yes, I did make this markdown file with the generator itself, pretty cool stuff right?

Questions

For any questions please contact me using these contact links:

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages