readme-genie
v1.1.1
Published
π Generate beautiful, intelligent READMEs automatically from your project codebase.
Maintainers
Readme
π Readme-genie
π Generate beautiful, intelligent READMEs automatically from your project codebase.
π― Quick Start Guide
For Users
Install
npm install -g readme-genieUse in Any Project
# Navigate to your project
cd my-awesome-project
# Generate README
readme-genie
# Or analyze specific folder
readme-genie ./src/componentsWhat You Get
A beautiful README.md with:
- β All React components with prop tables
- β All functions with descriptions
- β Folder structure
- β JSDoc comments preserved
To Publish This Package
Quick Publish
# 1. Login to npm
npm login
# 2. Publish
npm publish
# Done! β
Full Instructions
See PUBLISHING.md for detailed guide.
Current Features
β React Components
- Function components
- Arrow function components
- Class components
- React.FC with TypeScript
- Default exports
β Props Detection
- TypeScript interfaces
- Type aliases
- Destructured props
- Optional vs required
β JSDoc Support
- Full comment preservation
- @param extraction
- @returns extraction
- Multi-line descriptions
β Smart Inference
- Function purpose detection
- File purpose categorization
- Pattern-based naming
Example Output
Your library generates READMEs like this:
Components Section
## π§© React Components
### `Button`
**File:** `src/components/Button.tsx`
**Type:** React.FC
**Description:**A reusable button component with multiple variants Supports loading states and custom icons
| Prop | Type | Required |
|------|------|----------|
| `variant` | `primary | secondary` | β
|
| `onClick` | `() => void` | β
|
| `loading` | `boolean` | β |Functions Section
### `utils/helpers.js`
**Purpose:** Common helper utilities
**Functions:**
- `formatDate(date)` β Formats date to readable string
- `validateEmail(email)` β Validates email formatNext Steps
- β
Test locally:
node bin/cli.js ./src - β Update version in package.json
- β Commit to Git
- β
Publish:
npm publish - β Share with community!
Support
Need help? Open an issue on GitHub! https://github.com/radhikabhoyar0502/readme-genie/issues
