node

Turning promises into responses

After migrating a Node.js module to a new version, I am faced with the problem of unifying promises with callbacks. I opted for the first approach and try to handle the resolution of promises in the Express middle-ware rather than duplicating all the the code in each handler.