todo-expiry
v0.1.2
Published
Fail CI when TODO/FIXME comments with due dates expire.
Maintainers
Readme
todo-expiry
Fail CI when TODO or FIXME comments with due dates expire.
No dependencies. Works across common text/code files.
Usage
npx todo-expiryCheck specific paths:
npx todo-expiry src README.mdSupported comment formats
// TODO[2026-01-31] remove fallback after migration
// FIXME due: 2026-01-31 handle retry edge case
// TODO expires 2026-01-31 delete temporary workaroundIf the date is older than today, todo-expiry prints the file and line, then exits with code 1.
CI example
{
"scripts": {
"check:todos": "todo-expiry"
}
}Why
Normal TODO scanners list every TODO. This tool only cares about promises with dates, so teams can add temporary workarounds without letting them silently become permanent.
License
MIT
API
The todo-expiry CLI finds dated TODO and FIXME comments and fails when their due dates have passed.
npx todo-expiry test --today 2026-01-01Limitations
It reports comment deadlines; it does not track tickets or project-management systems.
