# @types/md5

> TypeScript definitions for md5

Latest version **2.3.6** (published 2025-10-15) · MIT license · 0 weekly downloads

## Install

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

## 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.

## Facts

| | |
|---|---|
| Version | 2.3.6 |
| Published | 2025-10-15 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

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

## Recent versions

- 2.3.6 (latest) — 2025-10-15
- 2.3.5 (ts4.5) — 2023-11-07
- 2.3.2 (ts4.4) — 2022-02-08
- 2.3.1 (ts3.6) — 2021-07-06
- 2.3.0 (ts3.5) — 2021-02-08
- 2.2.1 (ts3.2) — 2020-10-23
- 2.2.0 (ts3.1) — 2020-04-11
- 2.1.33 (ts2.4) — 2018-09-17
- 2.3.4 — 2023-10-18
- 2.3.3 — 2023-09-27
- 2.1.32 — 2017-04-17
- 2.1.31 — 2016-09-19
- 0.0.30 — 2016-08-25
- 0.0.29 — 2016-08-19
- 0.0.28 — 2016-08-02
- … 10 more at https://npm.io/package/@types/md5/versions

## README

# Installation
> `npm install --save @types/md5`

# Summary
This package contains type definitions for md5 (https://github.com/pvorb/node-md5).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/md5.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/md5/index.d.ts)
````ts
/**
 * Calculate the MD5 hash of a message.
 *
 * @param message - Message to hash.
 * @param options - Input and output options.
 * @returns MD5 hash.
 */
declare function md5(message: string | number[] | Uint8Array, options: md5.Options & { asBytes: true }): number[];
declare function md5(
    message: string | number[] | Uint8Array,
    options?: Pick<md5.Options, "asString" | "encoding">,
): string;
declare function md5(message: string | number[] | Uint8Array, options?: md5.Options): string | number[];

declare namespace md5 {
    interface Options {
        asBytes?: boolean | undefined;
        asString?: boolean | undefined;
        encoding?: "binary" | string | undefined;
    }
}

export = md5;

````

### Additional Details
 * Last updated: Wed, 15 Oct 2025 18:02:28 GMT
 * Dependencies: none

# Credits
These definitions were written by [Bill Sourour](https://github.com/arcdev1), [Piotr Błażejewicz](https://github.com/peterblazejewicz), and [Ruslan Arkhipau](https://github.com/DethAriel).

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