# glue

> Server composer for hapi.js

Latest version **6.0.0** (published 2019-01-22) · BSD-3-Clause license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install glue
pnpm add glue
yarn add glue
bun add glue
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2019-01-22 |
| First published | 2012-03-16 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | separate (@types/glue) |
| Module format | CommonJS |
| Node | >=8.0 |
| Dependencies | 3 |
| Unpacked size | 11.7 KB |
| Known vulnerabilities | 0 (+4 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 242 |
| Maintainers | csrl, hueniverse, marsup, nlf, wyatt |
| Keywords | server, pack, composer, manifest, hapi |

## Links

- npm: https://www.npmjs.com/package/glue
- Repository: https://github.com/hapijs/glue
- Homepage: https://github.com/hapijs/glue#readme
- Issues: https://github.com/hapijs/glue/issues
- npm.io page: https://npm.io/package/glue

## Dependencies (3)

- [joi](https://npm.io/package/joi.md) 14.x.x
- [hapi](https://npm.io/package/hapi.md) 18.x.x
- [hoek](https://npm.io/package/hoek.md) 6.x.x

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 6.0.0 (latest) — 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
- … 10 more at https://npm.io/package/glue/versions

## README

## glue

[![Build Status](https://travis-ci.org/hapijs/glue.svg)](https://travis-ci.org/hapijs/glue)

Lead Maintainer - [Chris Rempel](https://github.com/csrl)

### 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](API.md) 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](https://github.com/hapijs/glue/tree/v5) supports hapi **17**.
[glue@v4](https://github.com/hapijs/glue/tree/v4) supports hapi **11**, **12**, **13**, **14**, **15**, or **16**.

---
_Source: https://npm.io/package/glue · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
