{"data":{"markdownRemark":{"html":"<p>When I was developing web applications with <a href=\"https://github.com/hapijs/hapi\">Hapi.js</a>, I was using promises and async functions a lot.\nInstead 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.</p>","frontmatter":{"title":"Oath","date":"November 2016","headline":"Promise handler for Hapi","tags":["Hapi.js","JavaScript","Node.js"],"links":[{"title":"Repository","url":"https://github.com/seldszar/oath"}],"medias":null},"fields":{"slug":"/projects/oath","sourceInstanceName":"projects","cover":null}}},"pageContext":{"slug":"/projects/oath"}}