Oath

November 2016

Promise handler for Hapi

Hapi.js
JavaScript
Node.js

When I was developing web applications with Hapi.js, I was using promises and async functions a lot. Instead of duplicating small chicks of code for responding, I created a plugin handling everything for me. Like that, I only needed to return the promise and the plugin would send the response for me.