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

Function getHandleWrapType

lib/internal/child_process.js:340–347  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

338
339
340function getHandleWrapType(stream) {
341 if (stream instanceof Pipe) return 'pipe';
342 if (stream instanceof TTY) return 'tty';
343 if (stream instanceof TCP) return 'tcp';
344 if (stream instanceof UDP) return 'udp';
345
346 return false;
347}
348
349function closePendingHandle(target) {
350 target._pendingMessage.handle.close();

Callers 1

getValidStdioFunction · 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…