markdown-task-checker
Version:
A CLI tool to check markdown task list completion
112 lines (71 loc) β’ 1.89 kB
Markdown
# π markdown-task-checker
[](https://www.npmjs.com/package/markdown-task-checker)
[](https://www.npmjs.com/package/markdown-task-checker)
[](LICENSE)
> β
Check completion of markdown task lists from the command line!
> Perfect for validating PR checklists or tracking TODOs in your docs.
## π¦ Installation
```bash
npm install -g markdown-task-checker
```
> Or just use it with `npx` (no install needed):
```bash
npx markdown-task-checker ./README.md
```
## π Usage
### Basic
```bash
markdown-task-checker ./example.md
```
### Output Example
```text
β
3 / 5 tasks completed.
π Some tasks remain.
```
## β¨ Features
- Parses task lists like `- [ ]`, `- [x]` from markdown files
- Reports how many tasks are completed
- Simple CLI interface
- Great for CI automation or everyday note-checking
<!--
## π CLI Options (μμ κΈ°λ₯)
```bash
markdown-task-checker [file.md]
```
- [ ] `--require-all`: Fail if not all tasks are completed
- [ ] `--percent`: Show percentage of completed tasks
- [ ] `--json`: Output as JSON
> π€« _These will be added soon! Stay tuned._
-->
## π§ͺ Example Input (`example.md`)
```md
# My Checklist
- [x] Write the parser
- [ ] Write tests
- [x] Create CLI
- [ ] Polish README
```
## β
Sample Output
```bash
markdown-task-checker example.md
```
```text
β
2 / 4 tasks completed.
π Some tasks remain.
```
## π Related
- Inspired by [GitHub Flavored Markdown](https://github.github.com/gfm/)
- Ideal for GitHub PR templates
## π License
[MIT](./LICENSE)
## π Author
Made with β€οΈ by [Sang Yoon Lee / SYL](https://github.com/sangyoon-lee1231)