# @types/through2-map

> TypeScript definitions for through2-map

Latest version **3.0.5** (published 2026-07-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/through2-map
pnpm add @types/through2-map
yarn add @types/through2-map
bun add @types/through2-map
```

## Health

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

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3.0.5 |
| Published | 2026-07-01 |
| First published | 2017-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51465 |
| Maintainers | types |

## Links

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

## Dependencies (2)

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

## Recent versions

- 3.0.5 (latest) — 2026-07-01
- 3.0.4 (ts4.5) — 2023-11-07
- 3.0.2 (ts4.3) — 2023-09-12
- 3.0.1 (ts3.6) — 2021-07-02
- 3.0.0 (ts3.5) — 2017-07-17
- 3.0.3 — 2023-10-18

## README

# Installation
> `npm install --save @types/through2-map`

# Summary
This package contains type definitions for through2-map (https://github.com/brycebaril/through2-map).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/through2-map.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/through2-map/index.d.ts)
````ts
/// <reference types="node" />

import through2 = require("through2");
import stream = require("stream");

type MapCallback = (chunk: any, index: number) => void;

interface Through2MapOptions extends stream.DuplexOptions {
    wantStrings?: boolean | undefined;
}

declare function through2_map(options?: Through2MapOptions, fn?: MapCallback): through2.Through2Constructor;
declare function through2_map(fn?: MapCallback): through2.Through2Constructor;

declare namespace through2_map {
    function ctor(options?: Through2MapOptions, fn?: MapCallback): through2.Through2Constructor;
    function ctor(fn?: MapCallback): through2.Through2Constructor;

    function obj(options?: Through2MapOptions, fn?: MapCallback): through2.Through2Constructor;
    function obj(fn?: MapCallback): through2.Through2Constructor;

    function objCtor(options?: Through2MapOptions, fn?: MapCallback): through2.Through2Constructor;
    function objCtor(fn?: MapCallback): through2.Through2Constructor;
}

export = through2_map;

````

### Additional Details
 * Last updated: Wed, 01 Jul 2026 11:03:38 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/through2](https://npmjs.com/package/@types/through2)

# Credits
These definitions were written by [Lucas Hill](https://github.com/LucasHill).

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