Describe event state with colorful dots
Start and completion of a task will show a dot on the console. The color of the dot can be customized according to the state of the event when the task ends.
This can useful for brief reporting on async requests:
var DotReporter = DotReporterdot = /* optional state to color mappings */;...// Start a taskdot;;
The default state map is:
start: 'white'end: 'green'err: 'red'bad: 'purple'
The initial event state must always be called
npm test to see an example.