GitHub README Generator
Generate professional GitHub README files for your projects with multiple templates and customization options.
Features
- - 🎨 Multiple templates (Modern, Minimal, Detailed, API-focused)
- 🌐 Multi-language support
- 📋 Auto-generated badges
- 💼 Project type detection (Library, CLI, Web App, etc.)
- 📊 Auto-generated stats sections
Usage
Basic Generation
CODEBLOCK0
Available Templates
| Template | Use Case |
|---|
| INLINECODE0 | Most projects (default) |
| INLINECODE1 |
Simple libraries |
|
detailed | Complex projects with full documentation |
|
api | API/REST services |
|
cli | Command-line tools |
Options
- -
--template, -t : Template name - INLINECODE6 : Language (en, zh, ja, es, ko)
- INLINECODE7 : Include badge section (default: true)
- INLINECODE8 : Include table of contents (default: false)
- INLINECODE9 : Output file path
Examples
Python Library
CODEBLOCK1
CLI Tool
CODEBLOCK2
Node.js Package
CODEBLOCK3
Installation
CODEBLOCK4
How It Works
- 1. Detects project type from name/description
- Selects appropriate template
- Generates sections based on project type
- Adds relevant badges
- Outputs ready-to-use README.md
Output Example
The generated README includes:
- - Project title and badges
- Description
- Features list
- Installation instructions
- Usage examples
- API reference (if applicable)
- Contributing guidelines
- License
- Contact information
GitHub README 生成器
为您的项目生成专业的GitHub README文件,支持多种模板和自定义选项。
功能特性
- - 🎨 多种模板(现代、简约、详细、API专用)
- 🌐 多语言支持
- 📋 自动生成徽章
- 💼 项目类型检测(库、命令行工具、Web应用等)
- 📊 自动生成统计信息区域
使用方法
基础生成
bash
使用默认模板生成
github-readme-generator 项目名称 项目描述
指定模板
github-readme-generator 项目名称 项目描述 --template modern
指定语言
github-readme-generator 项目名称 项目描述 --lang zh
可用模板
| 模板 | 适用场景 |
|---|
| modern | 大多数项目(默认) |
| minimal |
简单库 |
| detailed | 需要完整文档的复杂项目 |
| api | API/REST服务 |
| cli | 命令行工具 |
选项参数
- - --template, -t : 模板名称
- --lang, -l : 语言(en, zh, ja, es, ko)
- --badges, -b : 包含徽章区域(默认:true)
- --toc, -c : 包含目录(默认:false)
- --output, -o : 输出文件路径
示例
Python库
bash
github-readme-generator my-lib 一个强大的Python库 --template modern
命令行工具
bash
github-readme-generator super-cli 出色的命令行工具 --template cli
Node.js包
bash
github-readme-generator my-package NPM包描述 --template modern
安装
bash
无需依赖
使用内置模板
工作原理
- 1. 从名称/描述中检测项目类型
- 选择合适的模板
- 根据项目类型生成相应区域
- 添加相关徽章
- 输出可直接使用的README.md文件
输出示例
生成的README包含:
- - 项目标题和徽章
- 项目描述
- 功能列表
- 安装说明
- 使用示例
- API参考(如适用)
- 贡献指南
- 许可证
- 联系方式