# @types/hpp

> TypeScript definitions for hpp

Latest version **0.2.7** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 65/100 (B)** — status: stable.

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

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

## Facts

| | |
|---|---|
| Version | 0.2.7 |
| Published | 2025-10-24 |
| First published | 2017-08-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.2.7 (latest) — 2025-10-24
- 0.2.6 (ts5.1) — 2024-02-05
- 0.2.5 (ts4.5) — 2023-11-07
- 0.2.2 (ts3.6) — 2021-07-08
- 0.2.1 (ts2.8) — 2017-10-30
- 0.2.0 (ts2.2) — 2017-08-07
- 0.2.4 — 2023-10-18
- 0.2.3 — 2023-09-16

## README

# Installation
> `npm install --save @types/hpp`

# Summary
This package contains type definitions for hpp (https://github.com/analog-nico/hpp).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hpp.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hpp/index.d.ts)
````ts
import express = require("express");

declare namespace hpp {
    interface Options {
        checkBody?: boolean | undefined;
        checkBodyOnlyForContentType?: string | undefined;
        checkQuery?: boolean | undefined;
        whitelist?: string | string[] | undefined;
    }
}

declare function hpp(options?: hpp.Options): express.RequestHandler;

export = hpp;

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/express](https://npmjs.com/package/@types/express)

# Credits
These definitions were written by [Michael Manzinger](https://github.com/kryops).

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