# @types/duplexify

> TypeScript definitions for duplexify

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

## Install

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

## 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 | 3.6.5 |
| Published | 2025-10-24 |
| First published | 2017-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51444 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 3.6.5 (latest) — 2025-10-24
- 3.6.4 (ts5.1) — 2023-11-07
- 3.6.1 (ts3.8) — 2021-12-23
- 3.6.0 (ts3.7) — 2018-11-05
- 3.6.3 — 2023-10-18
- 3.6.2 — 2023-09-22
- 3.5.0 — 2017-10-03

## README

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

import stream = require("stream");

export = duplexify;

interface DuplexifyConstructor {
    (writable?: stream.Writable, readable?: stream.Readable, streamOptions?: stream.DuplexOptions): duplexify.Duplexify;
    new(
        writable?: stream.Writable,
        readable?: stream.Readable,
        streamOptions?: stream.DuplexOptions,
    ): duplexify.Duplexify;

    obj(
        writable?: stream.Writable,
        readable?: stream.Readable,
        streamOptions?: stream.DuplexOptions,
    ): duplexify.Duplexify;
}
declare var duplexify: DuplexifyConstructor;
declare namespace duplexify {
    interface Duplexify extends stream.Duplex {
        cork(): void;
        uncork(): void;
        setWritable(writable: stream.Writable): void;
        setReadable(readable: stream.Readable): void;
    }
}

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Sami Kukkonen](https://github.com/strax).

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