# @not-govuk/express-adapter

> Adapts to Express middleware to run on Restify.

Latest version **0.16.3** (published 2025-08-18) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install @not-govuk/express-adapter
pnpm add @not-govuk/express-adapter
yarn add @not-govuk/express-adapter
bun add @not-govuk/express-adapter
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.16.3 |
| Published | 2025-08-18 |
| First published | 2022-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=14.0.0 |
| Dependencies | 1 |
| Unpacked size | 10.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Daniel A.C. Martin |
| Maintainers | daniel-ac-martin |

## Links

- npm: https://www.npmjs.com/package/@not-govuk/express-adapter
- npm.io page: https://npm.io/package/@not-govuk/express-adapter

## Dependencies (1)

- [etag](https://npm.io/package/etag.md) ^1.8.1

## Recent versions

- 0.16.3 (latest) — 2025-08-18
- 0.16.2 — 2025-05-30
- 0.16.1 — 2025-05-21
- 0.16.0 — 2025-05-11
- 0.15.14 — 2025-05-08
- 0.15.13 — 2025-05-07
- 0.15.12 — 2025-04-10
- 0.15.11 — 2025-04-03
- 0.15.10 — 2025-03-21
- 0.15.9 — 2025-03-17
- 0.15.8 — 2025-02-16
- 0.15.7 — 2025-02-15
- 0.15.6 — 2025-02-02
- 0.15.5 — 2025-01-21
- 0.15.4 — 2025-01-21
- … 35 more at https://npm.io/package/@not-govuk/express-adapter/versions

## README

NotGovUK - Express-Adapter
==========================

Adapts to Express middleware to run on Restify.

This is probably far from perfect, but it works sufficiently for my purposes.


Using this package
------------------

First install the package into your project:

```shell
npm install -S @not-govuk/express-adapter
```

Then use it in your code as follows:

```js
import { adapt } from '@not-govuk/express-adapter';
import { someExpressMiddleware } from '@someone/something;
import { restifyServer } from './my-server.js';

const restifyMiddleware = adapt(someExpressMiddleware);

restifyServer.use(restifyMiddleware);

[...]
```


Working on this package
-----------------------

Before working on this package you must install its dependencies using
the following command:

```shell
pnpm install
```


### Building

Build the package by compiling the source code.

```shell
npm run build
```


### Clean-up

Remove any previously built files.

```shell
npm run clean
```

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