A CLI tool to automatically generate README.md files based on comments in your code.
MIT License
auto-readme-creator
is a command-line tool that automatically generates a README.md
file based on comments in your code files. It scans your project files for comments and generates a formatted README to help document your project.
You can install auto-readme-creator
globally using npm:
npm install -g auto-readme-creator
if global installation fails you can use:
npx auto-readme-creator
auto-readme-creator
To make the most out of auto-readme-creator
and generate a well-organized README.md
file, follow these guidelines for formatting comments in your source files.
Comment Syntax
// This is a heading
~
. Everything after the ~
will be considered part of the paragraph. // ~ This is the first paragraph under the heading
// ~ This is the second paragraph under the same heading
After installing, you can use auto-readme-creator
to generate a README.md
file in your project directory. The tool will scan your source files and create a README based on the comments found in those files.
Open your terminal and navigate to the root directory of your project:
cd /path/to/your/project
Execute the auto-readme-creator
command:
auto-readme-creator
auto-readme-creator performs the following tasks:
To ensure that globally installed npm packages are accessible from the command line, you may need to add the npm global bin directory to your PATH environment variable. Here’s how to do it on Windows and macOS:
Find the npm Global Directory
Run the following command in your terminal to find the global npm directory:
npm config get prefix
This will return a path, such as C:\Users\YourUsername\AppData\Roaming\npm.
Run the following command in your terminal to find the global npm directory:
npm config get prefix
This will return a path, such as /usr/local.
Open your terminal.
your shell profile file (.bash_profile
, .zshrc
, or .bashrc
depending on your shell) using a text editor. For example:
nano ~/.bash_profile
export PATH=$PATH:/usr/local/bin
Contributions are welcome! If you'd like to contribute to auto-readme-creator
, please follow these steps:
Submit Issues: Report bugs or request features by opening an issue on GitHub Issues.
Create Pull Requests: Submit changes by creating a pull request. Please ensure your changes are well-documented and include tests if applicable.