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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    2
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i hapi-bluebird

Weekly Downloads

2

Version

2.0.0

License

MIT

Last publish

Collaborators

  • mathewdgardner