promise-log
I don't know about you, but I'm tired of typing stuff like this while debugging my node libraries (specially when working in the REPL!):
Instead, I'd like to do this:
;
Or even, in longer processing chains:
myPromise ;
Becomes:
myPromise ;
Hence, I published the promise-log
module to better support my laziness.
Usage
Install with npm:
npm install promise-log
And require anywhere in your project, passing the promise prototype you want to extend
(defaults to native Promise
):
Promise;
That will add the log
method to the Promise prototype.