JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14155
  • Score
    100M100P100Q139880F
  • License BSD-3-Clause

Server composer for hapi.js

Package Exports

  • @hapi/glue

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hapi/glue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

glue

Build Status

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.

hapi version dependency

Version 6 supports hapi v18
Version 5 supports hapi v17

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.

Interface

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