Node.js v20.20.2 documentation
- Node.js v20.20.2
-
Table of contents
- Command-line API
- Synopsis
- Program entry point
- Options
-----abort-on-uncaught-exception--allow-addons--allow-child-process--allow-fs-read--allow-fs-write--allow-wasi--allow-worker--build-snapshot--build-snapshot-config-c,--check--completion-bash-C condition,--conditions=condition--cpu-prof--cpu-prof-dir--cpu-prof-interval--cpu-prof-name--diagnostic-dir=directory--disable-warning=code-or-type--disable-wasm-trap-handler--disable-proto=mode--disallow-code-generation-from-strings--expose-gc--dns-result-order=order--enable-fips--enable-source-maps--env-file=config-e,--eval "script"--experimental-default-type=type--experimental-eventsource--experimental-import-meta-resolve--experimental-loader=module--experimental-network-imports--experimental-network-inspection--experimental-permission--experimental-policy--experimental-require-module--experimental-sea-config--experimental-shadow-realm--experimental-test-coverage--experimental-test-module-mocks--experimental-vm-modules--experimental-wasi-unstable-preview1--experimental-wasm-modules--experimental-websocket--force-context-aware--force-fips--force-node-api-uncaught-exceptions-policy--frozen-intrinsics--heap-prof--heap-prof-dir--heap-prof-interval--heap-prof-name--heapsnapshot-near-heap-limit=max_count--heapsnapshot-signal=signal-h,--help--icu-data-dir=file--import=module--input-type=type--insecure-http-parser--inspect[=[host:]port]--inspect-brk[=[host:]port]--inspect-port=[host:]port--inspect-publish-uid=stderr,http--inspect-wait[=[host:]port]-i,--interactive--jitless--max-http-header-size=size--napi-modules--network-family-autoselection-attempt-timeout--no-addons--no-deprecation--no-experimental-detect-module--no-experimental-fetch--no-experimental-global-customevent--no-experimental-global-webcrypto--no-experimental-repl-await--no-experimental-require-module--no-extra-info-on-fatal-exception--no-force-async-hooks-checks--no-global-search-paths--no-network-family-autoselection--no-warnings--node-memory-debug--openssl-config=file--openssl-legacy-provider--openssl-shared-config--env-file-if-exists=config--pending-deprecation--policy-integrity=sri--preserve-symlinks--preserve-symlinks-main-p,--print "script"--experimental-print-required-tla--prof--prof-process--redirect-warnings=file--report-compact--report-dir=directory,report-directory=directory--report-filename=filename--report-on-fatalerror--report-on-signal--report-signal=signal--report-uncaught-exception--report-exclude-network-r,--require module--secure-heap=n--secure-heap-min=n--snapshot-blob=path--test--test-concurrency--test-coverage-exclude--test-coverage-include--test-force-exit--test-name-pattern--test-only--test-reporter--test-reporter-destination--test-shard--test-timeout--throw-deprecation--title=title--tls-cipher-list=list--tls-keylog=file--tls-max-v1.2--tls-max-v1.3--tls-min-v1.0--tls-min-v1.1--tls-min-v1.2--tls-min-v1.3--trace-atomics-wait--trace-deprecation--trace-event-categories--trace-event-file-pattern--trace-events-enabled--trace-exit--trace-require-module=mode--trace-sigint--trace-sync-io--trace-tls--trace-uncaught--trace-warnings--track-heap-objects--unhandled-rejections=mode--use-bundled-ca,--use-openssl-ca--use-largepages=mode--v8-options--v8-pool-size=num-v,--version--watch--watch-path--watch-preserve-output--zero-fill-buffers
- Environment variables
FORCE_COLOR=[1, 2, 3]NO_COLOR=<any>NODE_DEBUG=module[,…]NODE_DEBUG_NATIVE=module[,…]NODE_DISABLE_COLORS=1NODE_EXTRA_CA_CERTS=fileNODE_ICU_DATA=fileNODE_NO_WARNINGS=1NODE_OPTIONS=options...NODE_PATH=path[:…]NODE_PENDING_DEPRECATION=1NODE_PENDING_PIPE_INSTANCES=instancesNODE_PRESERVE_SYMLINKS=1NODE_REDIRECT_WARNINGS=fileNODE_REPL_EXTERNAL_MODULE=fileNODE_REPL_HISTORY=fileNODE_SKIP_PLATFORM_CHECK=valueNODE_TEST_CONTEXT=valueNODE_TLS_REJECT_UNAUTHORIZED=valueNODE_V8_COVERAGE=dirOPENSSL_CONF=fileSSL_CERT_DIR=dirSSL_CERT_FILE=fileTZUV_THREADPOOL_SIZE=sizeUV_USE_IO_URING=value
- Useful V8 options
--abort-on-uncaught-exception--disallow-code-generation-from-strings--enable-etw-stack-walking--expose-gc--harmony-shadow-realm--huge-max-old-generation-size--jitless--interpreted-frames-native-stack--prof--perf-basic-prof--perf-basic-prof-only-functions--perf-prof--perf-prof-unwinding-info--max-old-space-size=SIZE(in MiB)--max-semi-space-size=SIZE(in MiB)--security-revert--stack-trace-limit=limit
- Command-line API
-
Index
- Assertion testing
- Asynchronous context tracking
- Async hooks
- Buffer
- C++ addons
- C/C++ addons with Node-API
- C++ embedder API
- Child processes
- Cluster
- Command-line options
- Console
- Corepack
- Crypto
- Debugger
- Deprecated APIs
- Diagnostics Channel
- DNS
- Domain
- Errors
- Events
- File system
- Globals
- HTTP
- HTTP/2
- HTTPS
- Inspector
- Internationalization
- Modules: CommonJS modules
- Modules: ECMAScript modules
- Modules:
node:moduleAPI - Modules: Packages
- Net
- OS
- Path
- Performance hooks
- Permissions
- Process
- Punycode
- Query strings
- Readline
- REPL
- Report
- Single executable applications
- Stream
- String decoder
- Test runner
- Timers
- TLS/SSL
- Trace events
- TTY
- UDP/datagram
- URL
- Utilities
- V8
- VM
- WASI
- Web Crypto API
- Web Streams API
- Worker threads
- Zlib
- Other versions
- Options