From e3f91db3ae988513599915ad8f6e73068f2bb0da Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Thu, 12 Sep 2024 12:02:25 +0200 Subject: [PATCH] doc: add documentation for process.features --- doc/api/process.md | 97 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/doc/api/process.md b/doc/api/process.md index fef004603910d3..8a0a57605a356e 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1896,6 +1896,103 @@ a code. Specifying a code to [`process.exit(code)`][`process.exit()`] will override any previous setting of `process.exitCode`. +## `process.features.cached_builtins` + + + +* {boolean} + +A boolean value that is `true` if the current Node.js build is caching builtin modules. + +## `process.features.debug` + + + +* {boolean} + +A boolean value that is `true` if the current Node.js build is a debug build. + +## `process.features.inspector` + + + +* {boolean} + +A boolean value that is `true` if the current Node.js build includes the inspector. + +## `process.features.ipv6` + + + +* {boolean} + +A boolean value that is `true` if the current Node.js build includes support for IPv6. + +## `process.features.tls` + + + +* {boolean} + +A boolean value that is `true` if the current Node.js build includes support for TLS. + +## `process.features.tls_alpn` + + + +* {boolean} + +A boolean value that is `true` if the current Node.js build includes support for ALPN in TLS. + +*** + +## `process.features.tls_ocsp` + + + +* {boolean} + +A boolean value that is `true` if the current Node.js build includes support for OCSP in TLS. + +*** + +## `process.features.tls_sni` + + + +* {boolean} + +A boolean value that is `true` if the current Node.js build includes support for SNI in TLS. + +*** + +## `process.features.uv` + + + +* {boolean} + +A boolean value that is `true` if the current Node.js build includes support for libuv. +Since it's currently not possible to build Node.js without libuv, this value is always `true`. + ## `process.finalization.register(ref, callback)`