hapi-bluebird

2.0.0 • Public • Published

hapi-bluebird

circle coverage npm MIT licensed

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.

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i hapi-bluebird

    Weekly Downloads

    2

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • mathewdgardner