glue

Server composer for hapi.js

BSD-3-Clause 25 个版本
安装
npm install glue
yarn add glue
pnpm add glue
bun add glue
README

glue

Build Status

Lead Maintainer - Chris Rempel

A server composer for hapi.js.

Glue provides configuration based composition of hapi's Server object. Specifically it wraps

  • server = Hapi.server(Options)
  • server.register(Plugins, Options)

calling each based on the configuration generated from the glue manifest.

Interface

Glue's API is a single function compose accepting a JSON manifest specifying the hapi server options and registrations.

hapi version dependency

Glue can support different versions of hapi. Adding support for a new version of hapi is considered a minor change. Removing support for a version of hapi is considered a major change.

By default NPM will resolve glue's dependency on hapi using the most recent supported version of hapi. To force a specific supported hapi version for your project, include hapi in your package dependencies along side of glue.

Glue version 6 currently supports hapi 18. glue@v5 supports hapi 17. glue@v4 supports hapi 11, 12, 13, 14, 15, or 16.

版本列表
6.0.0 2019-01-22
5.0.0 2017-11-06
4.2.1 2017-10-28
4.2.0 2017-07-28
4.1.0 2016-12-23
4.0.0 2016-08-27
3.4.0 2016-08-17
3.3.0 2016-06-04
3.2.1 2016-05-20
3.2.0 2016-02-13
3.1.0 2016-01-15
3.0.0 2015-12-28
2.4.0 2015-10-19
2.3.0 2015-09-14
2.2.0 2015-08-18
2.1.1 2015-07-20
2.1.0 2015-06-17
2.0.0 2014-12-15
2.0.0-rc4 2014-12-11
2.0.0-rc3 2014-12-03
2.0.0-rc2 2014-11-26
2.0.0-rc1 2014-11-18
1.0.0 2014-10-28
0.0.1 2014-10-27
0.0.0 2012-03-16