MCPcopy Index your code
hub / github.com/nodejs/node / isDuplexNodeStream

Function isDuplexNodeStream

lib/internal/streams/utils.js:59–66  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

57}
58
59function isDuplexNodeStream(obj) {
60 return !!(
61 obj &&
62 (typeof obj.pipe === 'function' && obj._readableState) &&
63 typeof obj.on === 'function' &&
64 typeof obj.write === 'function'
65 );
66}
67
68function isNodeStream(obj) {
69 return (

Callers 1

duplexify.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…