mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
Exposes the internal `guessHandleType` function as `guessFileDescriptorType`, which can be used to see if a handle has a specific type, regardless of the OS it is on. This helps out with detecting, for example, if standard input is piped into the process, instead of relying on file system calls. Refs: https://github.com/nodejs/node/issues/57603 Signed-off-by: Vlad Frangu <me@vladfrangu.dev> PR-URL: https://github.com/nodejs/node/pull/58060 Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: Aviv Keller <me@aviv.sh>