Tiny module to convert a Promise into Task.
$ npm install --save promise-to-task
const promiseToTask = require('promise-to-task');
const promise = new Promise((res, rej) => {}))
promiseToTask(promise)
.rejectedMap(e => 'oops')
.fork(console.warn, console.log);
Type: Promise
The Promise that you need to convert to a Task.
MIT © Hemanth.HM