Make sure that a function will return a promise (thenable).
If a function does not return a promise, it will promise.resolve
the return value.
$ npm install simple-thenify --save
const thenify = require('simple-thenify')
const fn = thenify(x => x + 1)
fn(1).then(console.log) // 2
MIT