markdown-history-cli
v0.1.0
Published
CLI for markdown history operations: check links, view history, and generate diffs
Maintainers
Readme
markdown-history-cli
CLI for markdown history operations: check links, view history, and generate diffs.
Installation
npm install -g markdown-history-cli
# or
pnpm add -g markdown-history-cliUsage
The CLI is available as both markdown-history and mdh (shorthand).
Check Links
Check internal and external links in markdown files:
# Check all markdown files in current directory
mdh check-links
# Check specific directory
mdh check-links ./docs
# Include external link validation (uses curl)
mdh check-links ./docs --externalView File History
View git history for a file:
# View last 30 commits (default)
mdh history README.md
# Limit results
mdh history README.md --limit 10Generate Diffs
Generate diffs between git revisions:
# Basic diff
mdh diff README.md --base main --head feature-branch
# Ignore whitespace changes
mdh diff README.md --base abc123 --head def456 --ignore-wsFeatures
- Fast link checking with wiki-style link support
- Git history tracking with follow support
- Diff generation with whitespace ignore options
- Works with any markdown files (.md, .mdx)
License
MIT
