This project was created in order to easily generate README markdown files for GitHub projects from the command line. It uses NODE.js with Inquirer and FS to take in input from a series of questions, which is then written to a README markdown file in the current directory. Included are shell scripts for Linux bash, Powershell, and CMD, all of which will allow you to run the program from any directory on your machine.
v2.0 This project was recently converted to TypeScript with small additional features.
- Description
- Table Of Contents
- Installation
- Usage Instructions
- Contribution Guidelines
- Testing Instructions
- License
- Questions?
git clone https://github.com/FaeroDev/readme-generator.git
The following dependencies are required for use:
- NODE.js - Inquirer npm package - FS npm package - TS-Node
Node.js is required to run this application, install it from your preferred package manager. Clone the above repository to your directory of choice. If you wish to use the included shell scripts to run the application from any directory, it is recommended to clone the repo to the following directories:
- Linux:
/home/readme-generator/
- Windows:
C:\"program files"\readme-generator\
- Gitbash for Windows:
/c/'program files'/readme-generator/
.
If you choose another directory and want to use the shell scripts, you will need to change the referenced directory in the scripts.
Once the repo has been cloned, navigate to the specified directory and run npm install
to install the required dependencies.
Optional -- to use the shell scripts you must include the file in your PATH. Use rmgen.cmd
for Powershell and CMD, and rmgen
for Linux and other bash.
- Linux -bash (or Windows Sunsytem for Linux) :
/usr/bin/
is a common location in PATH for scripts - Windows - Powershell or Command Line :
C:/Windows/System32
is commonly in PATH - Gitbash for Windows :
/c/'program files'/Git/usr/bin
is in PATH
It is advised that you change the name of this file (README.md) to another name, as using this application will produce a file named README.md in this directory and overwrite any previous files of the same name.
Once the repo is cloned the application may be ran from the installed directory by running npm start
from the command line. This will produce a markdown file named README.md in the repo directory. The readme file will be filled with input from a command line inquiry.
Optional -- if you have installed the shell scripts to a directory in your PATH then you can run this application from any directory by entering rmgen
in the command line. Using this option will produce the README.md file in whatever directory it is ran from. In Linux You may need to change file permissions to run the script, for most users 755 will work fine. navigate to the directory where the script is located and run chmod 755 rmgen
from the command line.
See attached instructional video:
If you would like to contribute to this project, please add me on GitHub
N/A
This project is covered under the license.
See attached LICENSE file for details.
If you have any questions regarding this application you can reach me using the below contact information:
GitHub: FaeroDev
Email: FaeroDev@gmail.com