1.0.2 • Published 6 months ago

autoreadme-cli v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

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.

image

šŸ“Œ 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 TypeDescription
šŸ“„ BasicMinimal README with project details, installation, and usage.
šŸŒ Open SourceIncludes contributing guide & code of conduct.
šŸ›  CLI ToolAdds CLI commands, usage examples.
šŸ”— API DocsIncludes API endpoints, documentation links.

šŸ’» CLI commands

CommandDescription
autoreadme generateRun interactive mode to generate README.md file.
autoreadme --helpShow available commands.
autoreadme --versionDisplay current version.
autoreadme debugEnable debug mode to inspect metadata.
autoreadme logsView 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