# duplex-passthrough **Repository Path**: mirrors_pimterry/duplex-passthrough ## Basic Information - **Project Name**: duplex-passthrough - **Description**: like a passthrough, but in both directions - **Primary Language**: Unknown - **License**: ISC - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-02-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # duplex-passthrough For when a single passthrough stream is not enough. ## USAGE ```javascript var dp = new DuplexPassThrough(stream, options); ``` Or, if the stream is not available yet: ```javascript var dp = new DuplexPassThrough(null, options); // some time later.. dp.wrapStream(stream); ``` This is useful if you have to buffer up both sides of a duplex stream for some reason, like if you want to read some bits of a socket, but then send it somewhere else, or do other crazy stuff.