autoreadme-cli v1.0.2
AutoReadMe ā Instant README Generator š
AutoReadMe is an instant README generator for developers, automating the creation of structured and detailed README.md files for various project types. It supports interactive CLI mode, different README templates, GitHub badges integration, and debug mode for enhanced customization.
š Features
ā Instant README Generation ā Create a README.md in seconds.
ā Interactive CLI ā Choose templates, add badges, and preview metadata.
ā Multiple README Templates ā Basic, Open Source, CLI Tool, API Docs.
ā GitHub Badges Integration ā Add dynamic badges for GitHub stats.
ā Debug Mode ā View detailed metadata before generating README.
ā Persistent Logs ā Retrieve past README generations.
ā Cross-Platform Support ā Works on Windows, macOS, Linux.
āļø Installation
Install globally via npm:
npm install -g autoreadme
Verify installation:
autoreadme --version
š Usage
Generate a README.md using interactive CLI:
autoreadme generate
You'll be prompted to: 1ļøā£ Select a README template (Basic, Open Source, CLI Tool, API Docs).2ļøā£ Choose whether to include GitHub badges.3ļøā£ Auto-generate and save README.md.
Example CLI Output
š Extracting project metadata...
ā
Project Metadata Retrieved successfully!!
ā š Select a README template: š CLI Tool (Commands, Usage)
ā š Do you want to include GitHub badges? No
š Generating README.md using "cli-tool" template...
ā
README.md successfully created at /your_project/README.md
š Available Templates
AutoReadMe supports the following README templates:
Template Type | Description |
---|---|
š Basic | Minimal README with project details, installation, and usage. |
š Open Source | Includes contributing guide & code of conduct. |
š CLI Tool | Adds CLI commands, usage examples. |
š API Docs | Includes API endpoints, documentation links. |
š» CLI commands
Command | Description |
---|---|
autoreadme generate | Run interactive mode to generate README.md file. |
autoreadme --help | Show available commands. |
autoreadme --version | Display current version. |
autoreadme debug | Enable debug mode to inspect metadata. |
autoreadme logs | View past README generation logs. |
š§ Dependencies
AutoReadMe is built using:
chalk ā For CLI text styling
commander ā Command-line argument parsing
figlet ā Banner styling
inquirer ā Interactive CLI prompts
simple-git ā Fetching GitHub repository details
fs, path, os ā File system operations
š Debugging & Logs
Enable Debug Mode
autoreadme generate
ā Select š Enable Debug Mode
š Displays full metadata output before README generation.
View Logs
autoreadme generate
ā Select š View Logs
š Displays history of README generations and exits.
Log Storage
Windows: C:\Users\YourUser\.autoreadme\logs.json
Mac/Linux: ~/.autoreadme/logs.json
Logs persist across CLI sessions
Log files are ignored in Git.
š¤ Contributing
We welcome contributions! To contribute:
1ļøā£ Fork the repository.
2ļøā£ Clone it: git clone https://github.com/CodeTirtho97/AutoReadMe.git
3ļøā£ Create a new branch & submit a PR.
š License
This project is licensed under the MIT License. See LICENSE for details.
š Links
GitHub Repo: AutoReadMe_GitHub
NPM Package: AutoReadMe_NPM