changelog-pro
v2.0.0
Published
Professional changelog generator and processor with badge support, HTML rendering, and CLI tools
Maintainers
Readme
Changelog Pro
Generate beautiful HTML changelogs from markdown with zero config. Supports live preview and smart install command labels.
🌟 Live Demo
Check it out: https://varsharyalii.github.io/changelog-pro/changelog
This is what your changelog will look like - timeline design, copy buttons that actually work, and hover tooltips.

📦 Installation
npm install -g changelog-pro # Install globally for CLI usageNPM Package: https://www.npmjs.com/package/changelog-pro
🚀 Quick Start
changelog-pro init # Create sample CHANGELOG.md
changelog-pro generate # Generate changelog.html
changelog-pro preview # Start live preview serverCommands
# Generate HTML from markdown
changelog-pro generate
# Custom input/output files
changelog-pro generate -i CHANGES.md -o docs/changelog.html
# Initialize new project with sample changelog
changelog-pro init
# Force overwrite existing changelog
changelog-pro init --force
# Start development server with live reload
changelog-pro preview
# Use custom port for preview
changelog-pro preview --port 8080
# Show changelog statistics
changelog-pro stats
# Analyze specific file
changelog-pro stats -i CHANGES.mdChangelog Format
Use Keep a Changelog format:
# Changelog
## [1.2.0] - 2025-01-02
### Added
- New feature for user authentication
- Support for multiple output formats
### Changed
- Improved error handling throughout the application
### Fixed
- Resolved issue with file parsing on WindowsConfiguration
// changelog-pro.config.js
module.exports = {
input: "CHANGELOG.md",
output: "changelog.html",
installCommand: [
"npm install changelog-pro", // no labels if identical
"npm install -g changelog-pro" // shows "global" label
]
};CI/CD Integration
Basic Pipeline Usage
# Install globally
npm install -g changelog-pro
# Generate changelog
changelog-pro generate -i CHANGELOG.md -o docs/changelog.htmlProgrammatic Usage
const { ChangelogGenerator } = require('changelog-pro');
const generator = new ChangelogGenerator();
await generator.generate({
input: 'CHANGELOG.md',
output: 'docs/changelog.html'
});Configuration
Create changelog-pro.config.js in your project root:
module.exports = {
input: "CHANGELOG.md",
output: "docs/changelog.html",
installCommand: ["npm install my-package@{version}"]
};Exit Codes
0: Success1: Error (file not found, parsing failed, etc.)
Environment Variables
CHANGELOG_INPUT: Input file pathCHANGELOG_OUTPUT: Output file pathCHANGELOG_TEMPLATE: Template name
GitHub Actions Example
- name: Generate Changelog
run: |
npm install -g changelog-pro
changelog-pro generateAPI Usage
const { ChangelogService } = require("changelog-pro");
const service = new ChangelogService();
const result = await service.generateChangelog("CHANGELOG.md", "output.html");
console.log(`Generated ${result.releases.length} releases`);Development
git clone https://github.com/varsharyalii/changelog-pro.git # Clone repo
cd changelog-pro # Enter directory
npm install # Install dependencies
npm test # Run tests
npm run lint # Check code styleRelease
npm version minor # Bumps version, updates changelog, creates tagLicense
MIT License - see LICENSE file.
