Unearth Your Codeโ€™s Hidden TODOs & Supercharge Your Workflow with comment-todo!

A

Ali nazari

Guest
Ever lost track of those // TODO: refactor this or /* FIXME: edge case */ comments scattered across your codebase?

What if you could automatically extract them, organize them into a clean TODO.md, and never let a critical task slip through the cracks again?

Meet comment-todo โ€” the CLI tool that does exactly that, and does it elegantly.

โญ Why Youโ€™ll Love This Tool


comment-todo isnโ€™t just another code scanner. Itโ€™s AST-powered for JavaScript/TypeScript (so it ignores false positives in strings or regex), supports multiple languages (Python, PHP, Go, Shell, and more), and even parses metadata like assignees and due dates. Imagine turning this:


Code:
// TODO(@alice, due:2025-09-01): Add validation

Into a structured entry in your TODO.md!

๐Ÿš€ Key Features

  • Smart Scanning: Uses AST parsing for JS/TS and fallback heuristics for other languages.
  • Metadata Extraction: Captures assignees (@user), due dates (due:YYYY-MM-DD), and custom key-value pairs.
  • Multi-Language Support: Works with JavaScript, TypeScript, Python, PHP, Go, Shell, and more.
  • GitHub-Friendly Output: Generates a well-formatted TODO.md or JSON for automation.
  • Lightning Fast: Concurrent file processing and minimal configuration.

๐Ÿ‘ฉโ€๐Ÿ’ป Who Is This For?

  • Developers who want to track technical debt without leaving their IDE.
  • Teams that need a centralized, auto-generated list of pending tasks.
  • Open-Source Maintainers looking to streamline issue tracking and contributions.
  • Anyone tired of losing TODOs in a sea of code!

๐Ÿ“ฆ How to Use It

  1. Install globally:

Code:
   npm install -g comment-todo
  1. Run it in your project:

Code:
   comment-todo --out TODO.md
  1. Boom! Your TODO.md is generated with all comments neatly organized.

๐ŸŒŸ Star It on GitHub!


This project is 100% open-source and built to help developers like you. If you find it useful, please show some love โญ on GitHub. Stars fuel motivation and help more people discover the tool!

๐Ÿ”ฎ Whatโ€™s Next?


Iโ€™m already working on features like custom tag support, IDE extensions, and Git integration. Want to contribute? PRs and ideas are welcome!

Try comment-todo today and never lose a TODO again!

๐Ÿ‘‰ GitHub Repo: https://github.com/Silent-Watcher/comment-todo

If you have questions drop a comment below! ๐Ÿ’ก

Letโ€™s connect!!: ๐Ÿค

LinkedIn
GitHub

Continue reading...
 


Join ๐•‹๐•„๐•‹ on Telegram
Channel PREVIEW:
Back
Top