hecks
Mount your express app onto your hapi server, aw heck!
Lead Maintainer - Devin Ivy
Usage
See also the API Reference
Hecks allows you to seamlessly incorporate express applications into a hapi v17+ server. This is particularly useful for testing an express server using server.inject()
, for unifying deployment of existing express and hapi applications, and as an initial stepping stone in migrating an express application to hapi.
const Express = ;const BodyParser = ;const Hapi = ;const Hoek = ;const Hecks = ; async { const app = ; app; const server = Hapi; await server; const result = await server; console; // {"name":"Bill","faveFood":"cactus","saved":true}};