estimator-generator
v1.0.1
Published
Generates an interactive HTML estimator from a structured Markdown file.
Maintainers
Readme
Estimator Generator
A Node.js CLI tool that transforms structured Markdown files into interactive HTML estimators for project planning.
Installation
# Install globally
npm install -g estimator-generator
# Or use npx directly
npx estimator-generator <input-file> [options]Usage
estimator <input-file> [options]Options
| Option | Description |
|--------|-------------|
| -o, --output <path> | Custom output file path |
| -s, --subtitle <text> | Subtitle for the estimator (default: current date) |
| -h, --help | Show help message |
| -v, --version | Show version number |
Examples
# Basic usage
estimator project.md
# With subtitle
estimator project.md -s "Q1 2025"
# Custom output path
estimator project.md -o ./output/estimate.html
# Combined options
estimator project.md --subtitle "Sprint 1" --output custom.htmlOutput: Creates an HTML file (default: <input-filename>-estimator.html) in the same directory as the input file.
Markdown Format
The source Markdown file must follow a specific structure for the parser to work correctly.
1. Document Title
The first H1 header is used as the estimator title.
# Project Name Plan2. Phases
Phases are defined by H2 headers starting with "Phase".
## Phase 1: Initialization3. Tasks
Tasks are defined by H3 headers starting with "Task".
### Task 1.1: Setup Repository4. Story Points
Story points must be bolded and in parentheses. Ranges are supported (averaged).
**Story Points: (3)**
**Story Points: (1-3)**5. Task Details
The following bold headers are recognized within a task block:
**Description:**- Task description (supports Markdown)**Deliverables:**- List of deliverables (supports Markdown)**Acceptance Criteria:**- Checklist or list (supports Markdown)**Dependencies:**- Text or comma-separated list. References to other tasks (e.g., "Task 1.2") are automatically linked**Risk:**- "Low", "Medium", or "High" (optionally followed by text)
Example Task Block
### Task 1.1: Setup Environment
**Story Points: (2)**
**Description:**
Initialize the project repository and configure build tools.
**Deliverables:**
- Repo created
- CI pipeline configured
**Acceptance Criteria:**
- [ ] Build passes
- [ ] Tests run
**Dependencies:** None
**Risk:** Low
---Note: The --- separator is optional but recommended for readability in the raw Markdown.
Examples
See the examples/ directory for sample Markdown files.
Contributing
Contributions are welcome! Please read our Contributing Guide for details.
Code of Conduct
This project follows a Code of Conduct. By participating, you are expected to uphold this code.
