Coder Social home page Coder Social logo

readme-generator2's Introduction

readme-generator2

Example

<iframe src="https://drive.google.com/file/d/1Vw33WqyBXgZrCQeRICt3dSAyFnKy43EL/view?usp=sharing" title ="Demonstration video"></iframe>

Table of Contents

Description

This project allows for the user to generate a simple yet professional readme file by answering a few questions in their terminal. A well-written readme is a must for any developper, as this is one of the primary methods of explaining to potential users what their product does, how to use it, and how it works. [sure some people who know how to code could stare at your code for however long and figure out how to use it or how its working but not everyone can do that and why waste the time when instead you could just write a useful readme]

Languages used in this project include JavaScript and some HTML. Node is also used along with the fs to create and write the readme file and Inquirer to facilitate the question-response portion. Inquirer runs our questions in the user's terminal, JavaScript and template literals are used to create the look of the readme file, and fs is used to create the actual file itself, using the user's responses to the questions.

So, we have a question, such as

inquirer
  .prompt([

    // Title header
    {
      type: 'input',
      message: 'What is your projects title?',
      name: 'title',
    },

And we can take that response and using our name as the section of the data we need to create the header of the readme using a template literal, such as

return `# ${data.title}

Which should show up the same way as our title here does in the new file they've created.

Credit

Credit to Manan (manan1995?) with AskBCS for helping me understand why my code wasn't running correctly, Adam (adamjabundis) for helping me fix my license functions and section to appear correctly and explain why things weren't pulling data correctly, and to all the people who tried to help me understand what exactly was wanted for the initializing feature both in my cohort and my personal life, especially my housemate Lyra who actually managed to explain what was being asked and why in a way that made sense to me.

License

This project falls under the MIT license.

Author

Damien Armstrong can be found on: Linkedin, Github

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.