-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
os: expose guessHandleType
#58060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
os: expose guessHandleType
#58060
Conversation
Exposes the internal `guessHandleType` function, 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: nodejs#57603
I'll rebase to fix the first commit message after the CI passes! Should I also squash the PR or leave the rest as is? |
As you prefer, in any case it will get squashed upon merging. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #58060 +/- ##
==========================================
- Coverage 90.21% 90.13% -0.08%
==========================================
Files 630 628 -2
Lines 186391 185957 -434
Branches 36610 36478 -132
==========================================
- Hits 168146 167620 -526
- Misses 11066 11223 +157
+ Partials 7179 7114 -65
🚀 New features to boost your workflow:
|
b88d406
to
f3d0b71
Compare
Exposes the internal
guessHandleType
function, 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: #57603