(obj)
| 48 | } |
| 49 | |
| 50 | function isWritableNodeStream(obj) { |
| 51 | return !!( |
| 52 | obj && |
| 53 | typeof obj.write === 'function' && |
| 54 | typeof obj.on === 'function' && |
| 55 | (!obj._readableState || obj._writableState?.writable !== false) // Duplex |
| 56 | ); |
| 57 | } |
| 58 | |
| 59 | function isDuplexNodeStream(obj) { |
| 60 | return !!( |
no outgoing calls
no test coverage detected
searching dependent graphs…