# hydra-express-plugin

> Plugins for Hydra Express microservices

Latest version **0.0.1** (published 2017-05-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install hydra-express-plugin
pnpm add hydra-express-plugin
yarn add hydra-express-plugin
bun add hydra-express-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-05-12 |
| First published | 2017-05-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | emadum |

## Links

- npm: https://www.npmjs.com/package/hydra-express-plugin
- npm.io page: https://npm.io/package/hydra-express-plugin

## Dependencies (1)

- [hydra-plugin](https://npm.io/package/hydra-plugin.md) 0.0.1

## Recent versions

- 0.0.1 (latest) — 2017-05-12

## README

## Hydra Express Plugins

`HydraExpressPlugin` extends `HydraPlugin`. See the [Hydra plugin documention](https://github.com/flywheelsports/hydra/blob/master/plugins.md) for more details.

Some caveats for `HydraExpressPlugin` vs `HydraPlugin`:

1. In `HydraExpressPlugin`, `setHydraExpress(hydraExpress)` is called instead of `setHydra(hydra)`; `setHydraExpress` calls `setHydra(hydraExpress.getHydra())` internally.

2. `HydraExpressPlugin.setConfig` is called with the service-level config rather than the hydra-level config like `HydraPlugin.setConfig`. `HydraExpressPlugin.setConfig(config)` calls `super.setConfig(config.hydra)` internally.

Make sure to call `super.setHydraExpress` or `super.setConfig` if you're extending `HydraExpressPlugin`, or otherwise ensure that the `HydraPlugin` methods get called with the appropriate arguments.

See the [`HydraExpressLogger` plugin](https://github.com/flywheelsports/fwsp-logger/blob/master/lib/HydraExpressLogger.js) for an example of a plugin that registers Express middleware (look at `onServiceReady`).

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