# frock-middleware-delay

> Delay middleware for frock.

Latest version **3.0.0** (published 2018-05-01) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install frock-middleware-delay
pnpm add frock-middleware-delay
yarn add frock-middleware-delay
bun add frock-middleware-delay
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2018-05-01 |
| First published | 2015-12-25 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Urban Airship |
| Maintainers | fardog, ua |

## Links

- npm: https://www.npmjs.com/package/frock-middleware-delay
- Repository: https://github.com/urbanairship/frock-middleware-delay
- Homepage: https://github.com/urbanairship/frock-middleware-delay#readme
- Issues: https://github.com/urbanairship/frock-middleware-delay/issues
- npm.io page: https://npm.io/package/frock-middleware-delay

## Recent versions

- 3.0.0 (latest) — 2018-05-01
- 2.0.0 — 2017-06-27
- 1.0.0 — 2015-12-25

## README

# frock-middleware-delay

A frock middleware for introducing latency into a request.

## `frockfile` Example

In your working directory, create a `frockfile.js`:

```json
{
  "servers": [
    {
      "port": 8080,
      "routes": [
        {
          "path": "/api/people",
          "methods": ["GET"],
          "handler": "frock-static",
          "middleware": [
            {
              "handler": "frock-middleware-delay",
              "options": {
                "min": 300,
                "max": 1500
              }
            }
          ],
          "options": {
            "file": "fixtures/static/people.json",
            "contentType": "application/json"
          }
        }
      ]
    }
  ]
}
```

## License

Apache 2.0, see [LICENSE](./LICENSE) for details.

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