hapi-bluebird
v2.0.0
Published
Make Hapi use Bluebird for its promises.
Downloads
6
Maintainers
Readme
hapi-bluebird
Make Hapi use Bluebird simply by requiring this module.
Version 2
Version 2 is updated for use with hapi 16+. It also replaces the native Promise library in node with the Bluebird promise object. This forces Hapi to use Bluebird promises.
Usage
const Bluebird = require('bluebird');
const Hapi = require('hapi');
require('hapi-bluebird');
const server = new Hapi.Server();
server.connection();
const promise = server.start();
console.log(promise instanceof Bluebird); // true
License
This software is licensed under the MIT license.