# @types/compression

> TypeScript definitions for compression

Latest version **1.8.1** (published 2025-06-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/compression
pnpm add @types/compression
yarn add @types/compression
bun add @types/compression
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.8.1 |
| Published | 2025-06-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 11.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/compression
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/compression
- npm.io page: https://npm.io/package/@types/compression

## Dependencies (2)

- [@types/node](https://npm.io/package/@types/node.md) *
- [@types/express](https://npm.io/package/@types/express.md) *

## Recent versions

- 1.8.1 (latest) — 2025-06-07
- 1.7.5 (ts4.5) — 2023-11-07
- 1.7.3 (ts4.3) — 2023-09-04
- 1.7.2 (ts3.8) — 2021-09-07
- 1.7.1 (ts3.6) — 2021-07-06
- 1.7.0 (ts2.9) — 2020-02-07
- 1.0.1 (ts2.3) — 2019-08-19
- 1.0.0 (ts2.2) — 2019-08-05
- 0.0.34 (ts2.0) — 2017-08-21
- 1.8.0 — 2025-05-21
- 1.7.4 — 2023-10-18
- 0.0.36 — 2018-03-15
- 0.0.35 — 2017-11-08
- 0.0.33 — 2016-09-19
- 0.0.32 — 2016-08-25
- … 12 more at https://npm.io/package/@types/compression/versions

## README

# Installation
> `npm install --save @types/compression`

# Summary
This package contains type definitions for compression (https://github.com/expressjs/compression).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/compression.

### Additional Details
 * Last updated: Sat, 07 Jun 2025 02:15:25 GMT
 * Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Santi Albo](https://github.com/santialbo), [Rob van der Burgt](https://github.com/rburgt), [Neil Bryson Cargamento](https://github.com/neilbryson), [Piotr Błażejewicz](https://github.com/peterblazejewicz), and [Sebastian Beltran](https://github.com/bjohansebas).

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