Skip to content

Commit cb20c5b

Browse files
authoredSep 14, 2024··
doc: add documentation for process.features
PR-URL: #54897 Refs: #54295 Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent d64835f commit cb20c5b

File tree

1 file changed

+97
-0
lines changed

1 file changed

+97
-0
lines changed
 

Diff for: ‎doc/api/process.md

+97
Original file line numberDiff line numberDiff line change
@@ -1896,6 +1896,103 @@ a code.
18961896
Specifying a code to [`process.exit(code)`][`process.exit()`] will override any
18971897
previous setting of `process.exitCode`.
18981898
1899+
## `process.features.cached_builtins`
1900+
1901+
<!-- YAML
1902+
added: REPLACEME
1903+
-->
1904+
1905+
* {boolean}
1906+
1907+
A boolean value that is `true` if the current Node.js build is caching builtin modules.
1908+
1909+
## `process.features.debug`
1910+
1911+
<!-- YAML
1912+
added: REPLACEME
1913+
-->
1914+
1915+
* {boolean}
1916+
1917+
A boolean value that is `true` if the current Node.js build is a debug build.
1918+
1919+
## `process.features.inspector`
1920+
1921+
<!-- YAML
1922+
added: REPLACEME
1923+
-->
1924+
1925+
* {boolean}
1926+
1927+
A boolean value that is `true` if the current Node.js build includes the inspector.
1928+
1929+
## `process.features.ipv6`
1930+
1931+
<!-- YAML
1932+
added: REPLACEME
1933+
-->
1934+
1935+
* {boolean}
1936+
1937+
A boolean value that is `true` if the current Node.js build includes support for IPv6.
1938+
1939+
## `process.features.tls`
1940+
1941+
<!-- YAML
1942+
added: REPLACEME
1943+
-->
1944+
1945+
* {boolean}
1946+
1947+
A boolean value that is `true` if the current Node.js build includes support for TLS.
1948+
1949+
## `process.features.tls_alpn`
1950+
1951+
<!-- YAML
1952+
added: REPLACEME
1953+
-->
1954+
1955+
* {boolean}
1956+
1957+
A boolean value that is `true` if the current Node.js build includes support for ALPN in TLS.
1958+
1959+
***
1960+
1961+
## `process.features.tls_ocsp`
1962+
1963+
<!-- YAML
1964+
added: REPLACEME
1965+
-->
1966+
1967+
* {boolean}
1968+
1969+
A boolean value that is `true` if the current Node.js build includes support for OCSP in TLS.
1970+
1971+
***
1972+
1973+
## `process.features.tls_sni`
1974+
1975+
<!-- YAML
1976+
added: REPLACEME
1977+
-->
1978+
1979+
* {boolean}
1980+
1981+
A boolean value that is `true` if the current Node.js build includes support for SNI in TLS.
1982+
1983+
***
1984+
1985+
## `process.features.uv`
1986+
1987+
<!-- YAML
1988+
added: REPLACEME
1989+
-->
1990+
1991+
* {boolean}
1992+
1993+
A boolean value that is `true` if the current Node.js build includes support for libuv.
1994+
Since it's currently not possible to build Node.js without libuv, this value is always `true`.
1995+
18991996
## `process.finalization.register(ref, callback)`
19001997
19011998
<!-- YAML

0 commit comments

Comments
 (0)
Please sign in to comment.