TODO or Die!
A JavaScript version of Searls' todo_or_die gem.
Usage
npm i todo-or-die
Import it and use it:
// For convenience, todo-or-die accepts `new Date()` compatible strings:
To understand why you would ever call a method to write a comment, read Searls' explanation.
What kind of error?
todo-or-die
throws an OverdueError
when your time's up. You can also import { OverdueError } from 'todo-or-die'
if you need it.
Custom Death
todoOrDieconfig { } // Reset it again!todoOrDie