From eb9f460dff6145b63670207d255e29a2db218c1a Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Sat, 14 Sep 2024 12:09:53 +0200 Subject: [PATCH 1/2] doc: add documentation for process.features PR-URL: https://github.com/nodejs/node/pull/54897 Refs: https://github.com/nodejs/node/pull/54295 Reviewed-By: Ethan Arrowood Reviewed-By: Trivikram Kamat Reviewed-By: Antoine du Hamel Reviewed-By: Chengzhong Wu --- doc/api/process.md | 97 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/doc/api/process.md b/doc/api/process.md index 2fa78f55f516e7..dfc3680956ce44 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1877,6 +1877,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.getActiveResourcesInfo()` * {boolean} @@ -1890,7 +1890,7 @@ A boolean value that is `true` if the current Node.js build is caching builtin m ## `process.features.debug` * {boolean} @@ -1900,7 +1900,7 @@ A boolean value that is `true` if the current Node.js build is a debug build. ## `process.features.inspector` * {boolean} @@ -1910,7 +1910,7 @@ A boolean value that is `true` if the current Node.js build includes the inspect ## `process.features.ipv6` * {boolean} @@ -1920,7 +1920,7 @@ A boolean value that is `true` if the current Node.js build includes support for ## `process.features.tls` * {boolean} @@ -1930,7 +1930,7 @@ A boolean value that is `true` if the current Node.js build includes support for ## `process.features.tls_alpn` * {boolean} @@ -1942,7 +1942,7 @@ A boolean value that is `true` if the current Node.js build includes support for ## `process.features.tls_ocsp` * {boolean} @@ -1954,7 +1954,7 @@ A boolean value that is `true` if the current Node.js build includes support for ## `process.features.tls_sni` * {boolean} @@ -1966,7 +1966,7 @@ A boolean value that is `true` if the current Node.js build includes support for ## `process.features.uv` * {boolean}