json-from-promise
Small Express connect-middlewere that sends json-response from your promise and errors with next.
Examples
CommonJS
const jsonFromPromise = jsonFromPromiseapp
ES6
app
Note that you should (always) have a error-handler at the end of your application. If you don't you will get a unhandle promise rejection.