Skip to main content
All Symbols - Node documentation

assert

The node:assert module provides a set of assertion functions for verifying invariants.

f
N
assert

An alias of ok.

c
assert.AssertionError

Indicates the failure of an assertion. All errors thrown by the node:assert module will be instances of the AssertionError class.

T
assert.AssertPredicate
No documentation available
I
assert.CallTrackerCall
No documentation available
f
assert.deepEqual

Strict assertion mode

f
assert.deepStrictEqual

Tests for deep equality between the actual and expected parameters. "Deep" equality means that the enumerable "own" properties of child objects are recursively evaluated also by the following rules.

f
assert.doesNotMatch

Expects the string input not to match the regular expression.

f
assert.doesNotReject

Awaits the asyncFn promise or, if asyncFn is a function, immediately calls the function and awaits the returned promise to complete. It will then check that the promise is not rejected.

f
assert.doesNotThrow

Asserts that the function fn does not throw an error.

f
assert.equal

Strict assertion mode

f
assert.fail

Throws an AssertionError with the provided error message or a default error message. If the message parameter is an instance of an Error then it will be thrown instead of the AssertionError.

f
assert.ifError

Throws value if value is not undefined or null. This is useful when testing the error argument in callbacks. The stack trace contains all frames from the error passed to ifError() including the potential new frames for ifError() itself.

f
assert.match

Expects the string input to match the regular expression.

f
assert.notDeepEqual

Strict assertion mode

f
assert.notDeepStrictEqual

Tests for deep strict inequality. Opposite of deepStrictEqual.

f
assert.notEqual

Strict assertion mode

f
assert.notStrictEqual

Tests strict inequality between the actual and expected parameters as determined by Object.is().

f
assert.ok

Tests if value is truthy. It is equivalent to assert.equal(!!value, true, message).

f
assert.rejects

Awaits the asyncFn promise or, if asyncFn is a function, immediately calls the function and awaits the returned promise to complete. It will then check that the promise is rejected.

N
v
assert.strict

In strict assertion mode, non-strict methods behave like their corresponding strict methods. For example, deepEqual will behave like deepStrictEqual.

T
assert.strict.AssertionError
No documentation available
T
assert.strict.AssertPredicate
No documentation available
T
assert.strict.CallTrackerCall
No documentation available
T
assert.strict.CallTrackerReportInformation
No documentation available
f
assert.strictEqual

Tests strict equality between the actual and expected parameters as determined by Object.is().

f
assert.throws

Expects the function fn to throw an error.

c
assert.CallTracker

This feature is deprecated and will be removed in a future version. Please consider using alternatives such as the mock helper function.

async_hooks

We strongly discourage the use of the async_hooks API. Other APIs that can cover most of its use cases include:

I
AsyncHook
No documentation available
c
AsyncLocalStorage

This class creates stores that stay coherent through asynchronous operations.

f
createHook
No documentation available
f
executionAsyncId
No documentation available
f
executionAsyncResource

Resource objects returned by executionAsyncResource() are most often internal Node.js handle objects with undocumented APIs. Using any functions or properties on the object is likely to crash your application and should be avoided.

f
triggerAsyncId

Promise contexts may not get valid triggerAsyncIds by default. See the section on promise execution tracking.

buffer

Buffer objects are used to represent a fixed-length sequence of bytes. Many Node.js APIs support Buffers.

f
atob

Decodes a string of Base64-encoded data into bytes, and encodes those bytes into a string using Latin-1 (ISO-8859-1).

c
I
v
Blob

A Blob encapsulates immutable, raw data that can be safely shared across multiple worker threads.

I
BlobOptions
No documentation available
f
btoa

Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes into a string using Base64.

I
BufferConstructor

Raw data is stored in instances of the Buffer class. A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized. Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'

T
BufferEncoding
No documentation available
v
constants
No documentation available
c
I
v
File

A File provides information about files.

I
FileOptions
No documentation available
v
INSPECT_MAX_BYTES
No documentation available
f
isAscii

This function returns true if input contains only valid ASCII-encoded data, including the case in which input is empty.

f
isUtf8

This function returns true if input contains only valid UTF-8-encoded data, including the case in which input is empty.

v
kMaxLength
No documentation available
v
kStringMaxLength
No documentation available
f
resolveObjectURL

Resolves a 'blob:nodedata:...' an associated Blob object registered using a prior call to URL.createObjectURL().

v
SlowBuffer
No documentation available
f
transcode

Re-encodes the given Buffer or Uint8Array instance from one character encoding to another. Returns a new Buffer instance.

T
TranscodeEncoding
No documentation available
I
WithArrayBufferLike
No documentation available
T
WithImplicitCoercion
No documentation available

child_process

The node:child_process module provides the ability to spawn subprocesses in a manner that is similar, but not identical, to popen(3). This capability is primarily provided by the spawn function:

I
ChildProcessByStdio
No documentation available
I
CommonOptions
No documentation available
f
exec

Spawns a shell then executes the command within that shell, buffering any generated output. The command string passed to the exec function is processed directly by the shell and special characters (vary based on shell) need to be dealt with accordingly:

I
f
execFile

The child_process.execFile() function is similar to exec except that it does not spawn a shell by default. Rather, the specified executable file is spawned directly as a new process making it slightly more efficient than exec.

T
ExecFileException
No documentation available
I
ExecFileOptionsWithBufferEncoding
No documentation available
I
ExecFileOptionsWithOtherEncoding
No documentation available
I
ExecFileOptionsWithStringEncoding
No documentation available
f
execFileSync

The child_process.execFileSync() method is generally identical to execFile with the exception that the method will not return until the child process has fully closed. When a timeout has been encountered and killSignal is sent, the method won't return until the process has completely exited.

I
ExecFileSyncOptions
No documentation available
I
I
I
ExecOptions
No documentation available
I
ExecOptionsWithBufferEncoding
No documentation available
I
ExecOptionsWithStringEncoding
No documentation available
f
execSync

The child_process.execSync() method is generally identical to exec with the exception that the method will not return until the child process has fully closed. When a timeout has been encountered and killSignal is sent, the method won't return until the process has completely exited. If the child process intercepts and handles the SIGTERM signal and doesn't exit, the parent process will wait until the child process has exited.

I
ExecSyncOptions
No documentation available
I
ExecSyncOptionsWithBufferEncoding
No documentation available
I
ExecSyncOptionsWithStringEncoding
No documentation available
f
fork

The child_process.fork() method is a special case of spawn used specifically to spawn new Node.js processes. Like spawn, a ChildProcess object is returned. The returned ChildProcess will have an additional communication channel built-in that allows messages to be passed back and forth between the parent and child. See subprocess.send() for details.

T
IOType
No documentation available
I
MessageOptions
No documentation available
I
ProcessEnvOptions
No documentation available
I
PromiseWithChild
No documentation available
T
SendHandle
No documentation available
T
Serializable
No documentation available
T
SerializationType
No documentation available
f
spawn

The child_process.spawn() method spawns a new process using the given command, with command-line arguments in args. If omitted, args defaults to an empty array.

I
SpawnOptions
No documentation available
I
SpawnOptionsWithoutStdio
No documentation available
I
SpawnOptionsWithStdioTuple
No documentation available
f
spawnSync

The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return until the child process has fully closed. When a timeout has been encountered and killSignal is sent, the method won't return until the process has completely exited. If the process intercepts and handles the SIGTERM signal and doesn't exit, the parent process will wait until the child process has exited.

I
SpawnSyncOptions
No documentation available
I
SpawnSyncOptionsWithBufferEncoding
No documentation available
I
SpawnSyncOptionsWithStringEncoding
No documentation available
T
StdioNull
No documentation available
T
StdioOptions
No documentation available
T
StdioPipe
No documentation available
T
StdioPipeNamed
No documentation available

console

The node:console module provides a simple debugging console that is similar to the JavaScript console mechanism provided by web browsers.

N
v
console

The console module provides a simple debugging console that is similar to the JavaScript console mechanism provided by web browsers.

I
console.ConsoleConstructor
No documentation available
v
default
No documentation available
v
exp
No documentation available

crypto

The node:crypto module provides cryptographic functionality that includes a set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify functions.

T
BinaryLike
No documentation available
T
BinaryToTextEncoding
No documentation available
T
CharacterEncoding
No documentation available
f
checkPrime

Checks the primality of the candidate.

I
CheckPrimeOptions
No documentation available
f
checkPrimeSync

Checks the primality of the candidate.

c
Cipher

Instances of the Cipher class are used to encrypt data. The class can be used in one of two ways:

I
CipherCCM
No documentation available
I
CipherCCMOptions
No documentation available
T
CipherCCMTypes
No documentation available
I
CipherGCM
No documentation available
I
CipherGCMOptions
No documentation available
T
CipherGCMTypes
No documentation available
I
CipherInfoOptions
No documentation available
T
CipherKey
No documentation available
T
CipherMode
No documentation available
I
CipherOCB
No documentation available
I
CipherOCBOptions
No documentation available
T
CipherOCBTypes
No documentation available
N
constants
No documentation available
v
constants.defaultCipherList

Specifies the active default cipher list used by the current Node.js process (colon-separated values).

v
constants.defaultCoreCipherList

Specifies the built-in default cipher list used by Node.js (colon-separated values).

v
constants.DH_CHECK_P_NOT_PRIME
No documentation available
v
constants.DH_CHECK_P_NOT_SAFE_PRIME
No documentation available
v
constants.DH_NOT_SUITABLE_GENERATOR
No documentation available
v
constants.DH_UNABLE_TO_CHECK_GENERATOR
No documentation available
v
constants.ENGINE_METHOD_ALL
No documentation available
v
constants.ENGINE_METHOD_CIPHERS
No documentation available
v
constants.ENGINE_METHOD_DH
No documentation available
v
constants.ENGINE_METHOD_DIGESTS
No documentation available
v
constants.ENGINE_METHOD_DSA
No documentation available
v
constants.ENGINE_METHOD_EC
No documentation available
v
constants.ENGINE_METHOD_NONE
No documentation available
v
constants.ENGINE_METHOD_PKEY_ASN1_METHS
No documentation available
v
constants.ENGINE_METHOD_PKEY_METHS
No documentation available
v
constants.ENGINE_METHOD_RAND
No documentation available
v
constants.ENGINE_METHOD_RSA
No documentation available
v
constants.OPENSSL_VERSION_NUMBER
No documentation available
v
constants.POINT_CONVERSION_COMPRESSED
No documentation available
v
constants.POINT_CONVERSION_HYBRID
No documentation available
v
constants.POINT_CONVERSION_UNCOMPRESSED
No documentation available
v
constants.RSA_NO_PADDING
No documentation available
v
constants.RSA_PKCS1_OAEP_PADDING
No documentation available
v
constants.RSA_PKCS1_PADDING
No documentation available
v
constants.RSA_PKCS1_PSS_PADDING
No documentation available
v
constants.RSA_PSS_SALTLEN_AUTO

Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature.

v
constants.RSA_PSS_SALTLEN_DIGEST

Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying.

v
constants.RSA_PSS_SALTLEN_MAX_SIGN

Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data.

v
constants.RSA_SSLV23_PADDING
No documentation available
v
constants.RSA_X931_PADDING
No documentation available
v
constants.SSL_OP_ALL

Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail.

v
constants.SSL_OP_ALLOW_NO_DHE_KEX

Instructs OpenSSL to allow a non-[EC]DHE-based key exchange mode for TLS v1.3

v
constants.SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION

Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html.

v
constants.SSL_OP_CIPHER_SERVER_PREFERENCE

Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html.

v
constants.SSL_OP_CISCO_ANYCONNECT

Instructs OpenSSL to use Cisco's version identifier of DTLS_BAD_VER.

v
constants.SSL_OP_CRYPTOPRO_TLSEXT_BUG

Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft.

v
constants.SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS

Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d.

v
constants.SSL_OP_LEGACY_SERVER_CONNECT

Allows initial connection to servers that do not support RI.

v
constants.SSL_OP_NO_COMPRESSION

Instructs OpenSSL to disable support for SSL/TLS compression.

v
constants.SSL_OP_NO_ENCRYPT_THEN_MAC

Instructs OpenSSL to disable encrypt-then-MAC.

v
constants.SSL_OP_NO_QUERY_MTU
No documentation available
v
constants.SSL_OP_NO_RENEGOTIATION

Instructs OpenSSL to disable renegotiation.

v
constants.SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION

Instructs OpenSSL to always start a new session when performing renegotiation.

v
constants.SSL_OP_NO_SSLv2

Instructs OpenSSL to turn off SSL v2

v
constants.SSL_OP_NO_SSLv3

Instructs OpenSSL to turn off SSL v3

v
constants.SSL_OP_NO_TICKET

Instructs OpenSSL to disable use of RFC4507bis tickets.

v
constants.SSL_OP_NO_TLSv1

Instructs OpenSSL to turn off TLS v1

v
constants.SSL_OP_NO_TLSv1_1

Instructs OpenSSL to turn off TLS v1.1

v
constants.SSL_OP_NO_TLSv1_2

Instructs OpenSSL to turn off TLS v1.2

v
constants.SSL_OP_NO_TLSv1_3

Instructs OpenSSL to turn off TLS v1.3

v
constants.SSL_OP_PRIORITIZE_CHACHA

Instructs OpenSSL server to prioritize ChaCha20-Poly1305 when the client does. This option has no effect if SSL_OP_CIPHER_SERVER_PREFERENCE is not enabled.

v
constants.SSL_OP_TLS_ROLLBACK_BUG

Instructs OpenSSL to disable version rollback attack detection.

f
createCipheriv

Creates and returns a Cipher object, with the given algorithm, key and initialization vector (iv).

f
createDecipheriv

Creates and returns a Decipher object that uses the given algorithm, key and initialization vector (iv).

f
createDiffieHellman

Creates a DiffieHellman key exchange object using the supplied prime and an optional specific generator.

f
createECDH

Creates an Elliptic Curve Diffie-Hellman (ECDH) key exchange object using a predefined curve specified by the curveName string. Use getCurves to obtain a list of available curve names. On recent OpenSSL releases, openssl ecparam -list_curves will also display the name and description of each available elliptic curve.

f
createHash

Creates and returns a Hash object that can be used to generate hash digests using the given algorithm. Optional options argument controls stream behavior. For XOF hash functions such as 'shake256', the outputLength option can be used to specify the desired output length in bytes.

f
createHmac

Creates and returns an Hmac object that uses the given algorithm and key. Optional options argument controls stream behavior.

f
createPrivateKey

Creates and returns a new key object containing a private key. If key is a string or Buffer, format is assumed to be 'pem'; otherwise, key must be an object with the properties described above.

f
createPublicKey

Creates and returns a new key object containing a public key. If key is a string or Buffer, format is assumed to be 'pem'; if key is a KeyObject with type 'private', the public key is derived from the given private key; otherwise, key must be an object with the properties described above.

f
createSecretKey

Creates and returns a new key object containing a secret key for symmetric encryption or Hmac.

f
createSign

Creates and returns a Sign object that uses the given algorithm. Use getHashes to obtain the names of the available digest algorithms. Optional options argument controls the stream.Writable behavior.

f
createVerify

Creates and returns a Verify object that uses the given algorithm. Use getHashes to obtain an array of names of the available signing algorithms. Optional options argument controls the stream.Writable behavior.

v
crypto
No documentation available
c
Decipher

Instances of the Decipher class are used to decrypt data. The class can be used in one of two ways:

I
DecipherCCM
No documentation available
I
DecipherGCM
No documentation available
I
DecipherOCB
No documentation available
c
DiffieHellman

The DiffieHellman class is a utility for creating Diffie-Hellman key exchanges.

f
diffieHellman

Computes the Diffie-Hellman secret based on a privateKey and a publicKey. Both keys must have the same asymmetricKeyType, which must be one of 'dh' (for Diffie-Hellman), 'ec' (for ECDH), 'x448', or 'x25519' (for ECDH-ES).

T
v
DiffieHellmanGroup
No documentation available
I
DiffieHellmanGroupConstructor
No documentation available
T
DSAEncoding
No documentation available
T
ECDHKeyFormat
No documentation available
I
ED25519KeyPairKeyObjectOptions
No documentation available
I
ED448KeyPairKeyObjectOptions
No documentation available
T
Encoding
No documentation available
f
generateKey

Asynchronously generates a new random secret key of the given length. The type will determine which validations will be performed on the length.

f
generateKeyPair
No documentation available
f
generateKeyPairSync

Generates a new asymmetric key pair of the given type. RSA, RSA-PSS, DSA, EC, Ed25519, Ed448, X25519, X448, and DH are currently supported.

f
generateKeySync

Synchronously generates a new random secret key of the given length. The type will determine which validations will be performed on the length.

f
generatePrime
No documentation available
I
GeneratePrimeOptions
No documentation available
I
GeneratePrimeOptionsArrayBuffer
No documentation available
I
GeneratePrimeOptionsBigInt
No documentation available
f
generatePrimeSync

Generates a pseudorandom prime of size bits.

f
getCipherInfo

Returns information about a given cipher.

f
getCiphers
No documentation available
f
getCurves
No documentation available
f
getDiffieHellman

Creates a predefined DiffieHellmanGroup key exchange object. The supported groups are listed in the documentation for DiffieHellmanGroup.

f
getFips
No documentation available
f
getHashes
No documentation available
f
getRandomValues

A convenient alias for webcrypto.getRandomValues. This implementation is not compliant with the Web Crypto spec, to write web-compatible code use webcrypto.getRandomValues instead.

c
Hash

The Hash class is a utility for creating hash digests of data. It can be used in one of two ways:

f
hash

A utility for creating one-shot hash digests of data. It can be faster than the object-based crypto.createHash() when hashing a smaller amount of data (<= 5MB) that's readily available. If the data can be big or if it is streamed, it's still recommended to use crypto.createHash() instead. The algorithm is dependent on the available algorithms supported by the version of OpenSSL on the platform. Examples are 'sha256', 'sha512', etc. On recent releases of OpenSSL, openssl list -digest-algorithms will display the available digest algorithms.

I
HashOptions
No documentation available
f
hkdf

HKDF is a simple key derivation function defined in RFC 5869. The given ikm, salt and info are used with the digest to derive a key of keylen bytes.

f
hkdfSync

Provides a synchronous HKDF key derivation function as defined in RFC 5869. The given ikm, salt and info are used with the digest to derive a key of keylen bytes.

I
JsonWebKey
No documentation available
I
JsonWebKeyInput
No documentation available
I
JwkKeyExportOptions
No documentation available
I
KeyExportOptions
No documentation available
T
KeyFormat
No documentation available
T
KeyLike
No documentation available
T
KeyObjectType
No documentation available
I
KeyPairKeyObjectResult
No documentation available
I
KeyPairSyncResult
No documentation available
T
KeyType
No documentation available
T
LargeNumberLike
No documentation available
T
LegacyCharacterEncoding
No documentation available
f
pbkdf2

Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2) implementation. A selected HMAC digest algorithm specified by digest is applied to derive a key of the requested byte length (keylen) from the password, salt and iterations.

f
pbkdf2Sync

Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2) implementation. A selected HMAC digest algorithm specified by digest is applied to derive a key of the requested byte length (keylen) from the password, salt and iterations.

f
privateDecrypt

Decrypts buffer with privateKey. buffer was previously encrypted using the corresponding public key, for example using publicEncrypt.

f
privateEncrypt

Encrypts buffer with privateKey. The returned data can be decrypted using the corresponding public key, for example using publicDecrypt.

f
pseudoRandomBytes
No documentation available
f
publicDecrypt
No documentation available
f
publicEncrypt

Encrypts the content of buffer with key and returns a new Buffer with encrypted content. The returned data can be decrypted using the corresponding private key, for example using privateDecrypt.

I
PublicKeyInput
No documentation available
f
randomBytes

Generates cryptographically strong pseudorandom data. The size argument is a number indicating the number of bytes to generate.

f
randomFill

This function is similar to randomBytes but requires the first argument to be a Buffer that will be filled. It also requires that a callback is passed in.

f
randomFillSync

Synchronous version of randomFill.

f
randomInt

Return a random integer n such that min <= n < max. This implementation avoids modulo bias.

f
randomUUID

Generates a random RFC 4122 version 4 UUID. The UUID is generated using a cryptographic pseudorandom number generator.

I
RandomUUIDOptions
No documentation available
I
RsaPublicKey
No documentation available
f
scrypt

Provides an asynchronous scrypt implementation. Scrypt is a password-based key derivation function that is designed to be expensive computationally and memory-wise in order to make brute-force attacks unrewarding.

f
scryptSync

Provides a synchronous scrypt implementation. Scrypt is a password-based key derivation function that is designed to be expensive computationally and memory-wise in order to make brute-force attacks unrewarding.

I
SecureHeapUsage
No documentation available
f
secureHeapUsed
No documentation available
f
setEngine
No documentation available
f
setFips

Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build. Throws an error if FIPS mode is not available.

c
Sign
No documentation available
f
sign

Calculates and returns the signature for data using the given private key and algorithm. If algorithm is null or undefined, then the algorithm is dependent upon the key type (especially Ed25519 and Ed448).

I
SigningOptions
No documentation available
I
SignJsonWebKeyInput
No documentation available
I
SignKeyObjectInput
No documentation available
I
SignPrivateKeyInput
No documentation available
v
subtle

A convenient alias for crypto.webcrypto.subtle.

f
timingSafeEqual

This function compares the underlying bytes that represent the given ArrayBuffer, TypedArray, or DataView instances using a constant-time algorithm.

T
UUID
No documentation available
c
Verify

The Verify class is a utility for verifying signatures. It can be used in one of two ways:

f
verify

Verifies the given signature for data using the given key and algorithm. If algorithm is null or undefined, then the algorithm is dependent upon the key type (especially Ed25519 and Ed448).

I
VerifyJsonWebKeyInput
No documentation available
I
VerifyKeyObjectInput
No documentation available
I
VerifyPublicKeyInput
No documentation available
N
v
webcrypto
No documentation available
I
webcrypto.AesCbcParams
No documentation available
I
webcrypto.AesCtrParams
No documentation available
I
webcrypto.AesDerivedKeyParams
No documentation available
I
webcrypto.AesKeyAlgorithm
No documentation available
I
webcrypto.AesKeyGenParams
No documentation available
I
webcrypto.Algorithm
No documentation available
T
webcrypto.AlgorithmIdentifier
No documentation available
T
webcrypto.BigInteger
No documentation available
T
webcrypto.BufferSource
No documentation available
I
webcrypto.Crypto

Importing the webcrypto object (import { webcrypto } from 'node:crypto') gives an instance of the Crypto class. Crypto is a singleton that provides access to the remainder of the crypto API.

I
webcrypto.CryptoKeyPair

The CryptoKeyPair is a simple dictionary object with publicKey and privateKey properties, representing an asymmetric key pair.

I
webcrypto.EcdhKeyDeriveParams
No documentation available
I
webcrypto.EcdsaParams
No documentation available
I
webcrypto.EcKeyAlgorithm
No documentation available
I
webcrypto.EcKeyGenParams
No documentation available
I
webcrypto.EcKeyImportParams
No documentation available
I
webcrypto.Ed448Params
No documentation available
T
webcrypto.HashAlgorithmIdentifier
No documentation available
I
webcrypto.HkdfParams
No documentation available
I
webcrypto.HmacImportParams
No documentation available
I
webcrypto.HmacKeyAlgorithm
No documentation available
I
webcrypto.HmacKeyGenParams
No documentation available
I
webcrypto.KeyAlgorithm
No documentation available
T
webcrypto.KeyFormat
No documentation available
T
webcrypto.KeyType
No documentation available
T
webcrypto.KeyUsage
No documentation available
T
webcrypto.NamedCurve
No documentation available
I
webcrypto.Pbkdf2Params
No documentation available
I
webcrypto.RsaHashedImportParams
No documentation available
I
webcrypto.RsaHashedKeyAlgorithm
No documentation available
I
webcrypto.RsaHashedKeyGenParams
No documentation available
I
webcrypto.RsaOaepParams
No documentation available
I
webcrypto.RsaOtherPrimesInfo
No documentation available
I
webcrypto.RsaPssParams
No documentation available
I
X25519KeyPairKeyObjectOptions
No documentation available
I
X448KeyPairKeyObjectOptions
No documentation available
v
fips
No documentation available
c
Hmac

The Hmac class is a utility for creating cryptographic HMAC digests. It can be used in one of two ways:

dgram

The node:dgram module provides an implementation of UDP datagram sockets.

I
BindOptions
No documentation available
f
createSocket

Creates a dgram.Socket object. Once the socket is created, calling socket.bind() will instruct the socket to begin listening for datagram messages. When address and port are not passed to socket.bind() the method will bind the socket to the "all interfaces" address on a random port (it does the right thing for both udp4 and udp6 sockets). The bound address and port can be retrieved using socket.address().address and socket.address().port.

I
RemoteInfo
No documentation available
T
SocketType
No documentation available

diagnostics_channel

The node:diagnostics_channel module provides an API to create named channels to report arbitrary message data for diagnostics purposes.

c
Channel

The class Channel represents an individual named channel within the data pipeline. It is used to track subscribers and to publish messages when there are subscribers present. It exists as a separate object to avoid channel lookups at publish time, enabling very fast publish speeds and allowing for heavy use while incurring very minimal cost. Channels are created with channel, constructing a channel directly with new Channel(name) is not supported.

f
channel

This is the primary entry-point for anyone wanting to publish to a named channel. It produces a channel object which is optimized to reduce overhead at publish time as much as possible.

T
ChannelListener
No documentation available
f
hasSubscribers

Check if there are active subscribers to the named channel. This is helpful if the message you want to send might be expensive to prepare.

f
subscribe

Register a message handler to subscribe to this channel. This message handler will be run synchronously whenever a message is published to the channel. Any errors thrown in the message handler will trigger an 'uncaughtException'.

c
TracingChannel

The class TracingChannel is a collection of TracingChannel Channels which together express a single traceable action. It is used to formalize and simplify the process of producing events for tracing application flow. tracingChannel is used to construct a TracingChannel. As with Channel it is recommended to create and reuse a single TracingChannel at the top-level of the file rather than creating them dynamically.

f
tracingChannel

Creates a TracingChannel wrapper for the given TracingChannel Channels. If a name is given, the corresponding tracing channels will be created in the form of tracing:${name}:${eventType} where eventType corresponds to the types of TracingChannel Channels.

f
unsubscribe

Remove a message handler previously registered to this channel with subscribe.

dns

The node:dns module enables name resolution. For example, use it to look up IP addresses of host names.

v
ADDRCONFIG

Limits returned address types to the types of non-loopback addresses configured on the system. For example, IPv4 addresses are only returned if the current system has at least one IPv4 address configured.

v
ADDRGETNETWORKPARAMS
No documentation available
v
ALL

If dns.V4MAPPED is specified, return resolved IPv6 addresses as well as IPv4 mapped IPv6 addresses.

I
AnyAaaaRecord
No documentation available
I
AnyARecord
No documentation available
I
AnyCnameRecord
No documentation available
I
AnyMxRecord
No documentation available
I
AnyNaptrRecord
No documentation available
I
AnyNsRecord
No documentation available
I
AnyPtrRecord
No documentation available
T
AnyRecord
No documentation available
I
AnySoaRecord
No documentation available
I
AnySrvRecord
No documentation available
I
AnyTxtRecord
No documentation available
v
BADFAMILY
No documentation available
v
BADFLAGS
No documentation available
v
BADHINTS
No documentation available
v
BADNAME
No documentation available
v
BADQUERY
No documentation available
v
BADRESP
No documentation available
v
BADSTR
No documentation available
v
CANCELLED
No documentation available
v
CONNREFUSED
No documentation available
v
DESTRUCTION
No documentation available
v
EOF
No documentation available
v
FILE
No documentation available
v
FORMERR
No documentation available
f
getDefaultResultOrder

Get the default value for order in lookup and dnsPromises.lookup(). The value could be:

f
getServers

Returns an array of IP address strings, formatted according to RFC 5952, that are currently configured for DNS resolution. A string will include a port section if a custom port is used.

v
LOADIPHLPAPI
No documentation available
f
lookup

Resolves a host name (e.g. 'nodejs.org') into the first found A (IPv4) or AAAA (IPv6) record. All option properties are optional. If options is an integer, then it must be 4 or 6 – if options is 0 or not provided, then IPv4 and IPv6 addresses are both returned if found.

I
LookupAddress
No documentation available
I
LookupAllOptions
No documentation available
I
LookupOneOptions
No documentation available
I
LookupOptions
No documentation available
f
lookupService

Resolves the given address and port into a host name and service using the operating system's underlying getnameinfo implementation.

I
MxRecord
No documentation available
v
NODATA
No documentation available
v
NOMEM
No documentation available
v
NONAME
No documentation available
v
NOTFOUND
No documentation available
v
NOTIMP
No documentation available
v
NOTINITIALIZED
No documentation available
N
promises

The dns.promises API provides an alternative set of asynchronous DNS methods that return Promise objects rather than using callbacks. The API is accessible via import { promises as dnsPromises } from 'node:dns' or import dnsPromises from 'node:dns/promises'.

v
promises.ADDRGETNETWORKPARAMS
No documentation available
v
promises.BADFAMILY
No documentation available
v
promises.BADFLAGS
No documentation available
v
promises.BADHINTS
No documentation available
v
promises.BADNAME
No documentation available
v
promises.BADQUERY
No documentation available
v
promises.BADRESP
No documentation available
v
promises.BADSTR
No documentation available
v
promises.CANCELLED
No documentation available
v
promises.CONNREFUSED
No documentation available
v
promises.DESTRUCTION
No documentation available
v
promises.EOF
No documentation available
v
promises.FILE
No documentation available
v
promises.FORMERR
No documentation available
f
promises.getDefaultResultOrder

Get the default value for verbatim in lookup and dnsPromises.lookup(). The value could be:

f
promises.getServers

Returns an array of IP address strings, formatted according to RFC 5952, that are currently configured for DNS resolution. A string will include a port section if a custom port is used.

v
promises.LOADIPHLPAPI
No documentation available
f
promises.lookup

Resolves a host name (e.g. 'nodejs.org') into the first found A (IPv4) or AAAA (IPv6) record. All option properties are optional. If options is an integer, then it must be 4 or 6 – if options is not provided, then IPv4 and IPv6 addresses are both returned if found.

f
promises.lookupService

Resolves the given address and port into a host name and service using the operating system's underlying getnameinfo implementation.

v
promises.NODATA
No documentation available
v
promises.NOMEM
No documentation available
v
promises.NONAME
No documentation available
v
promises.NOTFOUND
No documentation available
v
promises.NOTIMP
No documentation available
v
promises.NOTINITIALIZED
No documentation available
v
promises.REFUSED
No documentation available
f
promises.resolve

Uses the DNS protocol to resolve a host name (e.g. 'nodejs.org') into an array of the resource records. When successful, the Promise is resolved with an array of resource records. The type and structure of individual results vary based on rrtype:

f
promises.resolve4

Uses the DNS protocol to resolve IPv4 addresses (A records) for the hostname. On success, the Promise is resolved with an array of IPv4 addresses (e.g. ['74.125.79.104', '74.125.79.105', '74.125.79.106']).

f
promises.resolve6

Uses the DNS protocol to resolve IPv6 addresses (AAAA records) for the hostname. On success, the Promise is resolved with an array of IPv6 addresses.

f
promises.resolveAny

Uses the DNS protocol to resolve all records (also known as ANY or * query). On success, the Promise is resolved with an array containing various types of records. Each object has a property type that indicates the type of the current record. And depending on the type, additional properties will be present on the object:

f
promises.resolveCaa

Uses the DNS protocol to resolve CAA records for the hostname. On success, the Promise is resolved with an array of objects containing available certification authority authorization records available for the hostname (e.g. [{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]).

f
promises.resolveCname

Uses the DNS protocol to resolve CNAME records for the hostname. On success, the Promise is resolved with an array of canonical name records available for the hostname (e.g. ['bar.example.com']).

f
promises.resolveMx

Uses the DNS protocol to resolve mail exchange records (MX records) for the hostname. On success, the Promise is resolved with an array of objects containing both a priority and exchange property (e.g.[{priority: 10, exchange: 'mx.example.com'}, ...]).

f
promises.resolveNaptr

Uses the DNS protocol to resolve regular expression-based records (NAPTR records) for the hostname. On success, the Promise is resolved with an array of objects with the following properties:

f
promises.resolveNs

Uses the DNS protocol to resolve name server records (NS records) for the hostname. On success, the Promise is resolved with an array of name server records available for hostname (e.g.['ns1.example.com', 'ns2.example.com']).

f
promises.resolvePtr

Uses the DNS protocol to resolve pointer records (PTR records) for the hostname. On success, the Promise is resolved with an array of strings containing the reply records.

f
promises.resolveSoa

Uses the DNS protocol to resolve a start of authority record (SOA record) for the hostname. On success, the Promise is resolved with an object with the following properties:

f
promises.resolveSrv

Uses the DNS protocol to resolve service records (SRV records) for the hostname. On success, the Promise is resolved with an array of objects with the following properties:

f
promises.resolveTxt

Uses the DNS protocol to resolve text queries (TXT records) for the hostname. On success, the Promise is resolved with a two-dimensional array of the text records available for hostname (e.g.[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]). Each sub-array contains TXT chunks of one record. Depending on the use case, these could be either joined together or treated separately.

f
promises.reverse

Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an array of host names.

v
promises.SERVFAIL
No documentation available
f
promises.setDefaultResultOrder

Set the default value of order in dns.lookup() and [lookup](././dns/~/lookup). The value could be:

f
promises.setServers

Sets the IP address and port of servers to be used when performing DNS resolution. The servers argument is an array of RFC 5952 formatted addresses. If the port is the IANA default DNS port (53) it can be omitted.

v
promises.TIMEOUT
No documentation available
I
RecordWithTtl
No documentation available
v
REFUSED
No documentation available
f
resolve
No documentation available
f
resolve4
No documentation available
f
resolve6
No documentation available
f
resolveAny
No documentation available
f
resolveCaa
No documentation available
f
resolveCname
No documentation available
f
resolveMx
No documentation available
f
resolveNaptr
No documentation available
f
resolveNs
No documentation available
I
ResolveOptions
No documentation available
f
resolvePtr
No documentation available
I
ResolverOptions
No documentation available
f
resolveSoa
No documentation available
f
resolveSrv
No documentation available
f
resolveTxt
No documentation available
I
ResolveWithTtlOptions
No documentation available
f
reverse

Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an array of host names.

v
SERVFAIL
No documentation available
f
setDefaultResultOrder

Set the default value of order in lookup and dnsPromises.lookup(). The value could be:

f
setServers

Sets the IP address and port of servers to be used when performing DNS resolution. The servers argument is an array of RFC 5952 formatted addresses. If the port is the IANA default DNS port (53) it can be omitted.

I
SrvRecord
No documentation available
v
TIMEOUT
No documentation available
v
V4MAPPED

If the IPv6 family was specified, but no IPv6 addresses were found, then return IPv4 mapped IPv6 addresses. It is not supported on some operating systems (e.g. FreeBSD 10.1).

T
AnyRecordWithTtl
No documentation available

dns/promises

The dns.promises API provides an alternative set of asynchronous DNS methods that return Promise objects rather than using callbacks. The API is accessible via import { promises as dnsPromises } from 'node:dns' or import dnsPromises from 'node:dns/promises'.

v
ADDRGETNETWORKPARAMS
No documentation available
v
BADFAMILY
No documentation available
v
BADFLAGS
No documentation available
v
BADHINTS
No documentation available
v
BADNAME
No documentation available
v
BADQUERY
No documentation available
v
BADRESP
No documentation available
v
BADSTR
No documentation available
v
CANCELLED
No documentation available
v
CONNREFUSED
No documentation available
v
DESTRUCTION
No documentation available
v
EOF
No documentation available
v
FILE
No documentation available
v
FORMERR
No documentation available
f
getDefaultResultOrder

Get the default value for verbatim in lookup and dnsPromises.lookup(). The value could be:

f
getServers

Returns an array of IP address strings, formatted according to RFC 5952, that are currently configured for DNS resolution. A string will include a port section if a custom port is used.

v
LOADIPHLPAPI
No documentation available
f
lookup

Resolves a host name (e.g. 'nodejs.org') into the first found A (IPv4) or AAAA (IPv6) record. All option properties are optional. If options is an integer, then it must be 4 or 6 – if options is not provided, then IPv4 and IPv6 addresses are both returned if found.

f
lookupService

Resolves the given address and port into a host name and service using the operating system's underlying getnameinfo implementation.

v
NODATA
No documentation available
v
NOMEM
No documentation available
v
NONAME
No documentation available
v
NOTFOUND
No documentation available
v
NOTIMP
No documentation available
v
NOTINITIALIZED
No documentation available
v
REFUSED
No documentation available
f
resolve

Uses the DNS protocol to resolve a host name (e.g. 'nodejs.org') into an array of the resource records. When successful, the Promise is resolved with an array of resource records. The type and structure of individual results vary based on rrtype:

f
resolve4

Uses the DNS protocol to resolve IPv4 addresses (A records) for the hostname. On success, the Promise is resolved with an array of IPv4 addresses (e.g. ['74.125.79.104', '74.125.79.105', '74.125.79.106']).

f
resolve6

Uses the DNS protocol to resolve IPv6 addresses (AAAA records) for the hostname. On success, the Promise is resolved with an array of IPv6 addresses.

f
resolveAny

Uses the DNS protocol to resolve all records (also known as ANY or * query). On success, the Promise is resolved with an array containing various types of records. Each object has a property type that indicates the type of the current record. And depending on the type, additional properties will be present on the object:

f
resolveCaa

Uses the DNS protocol to resolve CAA records for the hostname. On success, the Promise is resolved with an array of objects containing available certification authority authorization records available for the hostname (e.g. [{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]).

f
resolveCname

Uses the DNS protocol to resolve CNAME records for the hostname. On success, the Promise is resolved with an array of canonical name records available for the hostname (e.g. ['bar.example.com']).

f
resolveMx

Uses the DNS protocol to resolve mail exchange records (MX records) for the hostname. On success, the Promise is resolved with an array of objects containing both a priority and exchange property (e.g.[{priority: 10, exchange: 'mx.example.com'}, ...]).

f
resolveNaptr

Uses the DNS protocol to resolve regular expression-based records (NAPTR records) for the hostname. On success, the Promise is resolved with an array of objects with the following properties:

f
resolveNs

Uses the DNS protocol to resolve name server records (NS records) for the hostname. On success, the Promise is resolved with an array of name server records available for hostname (e.g.['ns1.example.com', 'ns2.example.com']).

f
resolvePtr

Uses the DNS protocol to resolve pointer records (PTR records) for the hostname. On success, the Promise is resolved with an array of strings containing the reply records.

f
resolveSoa

Uses the DNS protocol to resolve a start of authority record (SOA record) for the hostname. On success, the Promise is resolved with an object with the following properties:

f
resolveSrv

Uses the DNS protocol to resolve service records (SRV records) for the hostname. On success, the Promise is resolved with an array of objects with the following properties:

f
resolveTxt

Uses the DNS protocol to resolve text queries (TXT records) for the hostname. On success, the Promise is resolved with a two-dimensional array of the text records available for hostname (e.g.[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]). Each sub-array contains TXT chunks of one record. Depending on the use case, these could be either joined together or treated separately.

f
reverse

Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an array of host names.

v
SERVFAIL
No documentation available
f
setDefaultResultOrder

Set the default value of order in dns.lookup() and [lookup](././dns/promises/~/lookup). The value could be:

f
setServers

Sets the IP address and port of servers to be used when performing DNS resolution. The servers argument is an array of RFC 5952 formatted addresses. If the port is the IANA default DNS port (53) it can be omitted.

v
TIMEOUT
No documentation available
f
create
No documentation available

events

Much of the Node.js core API is built around an idiomatic asynchronous event-driven architecture in which certain kinds of objects (called "emitters") emit named events that cause Function objects ("listeners") to be called.

T
AnyRest
No documentation available
T
Args
No documentation available
T
DefaultEventMap
No documentation available
I
EventEmitter.Abortable
No documentation available
c
EventEmitter.EventEmitterAsyncResource

Integrates EventEmitter with AsyncResource for EventEmitters that require manual async tracking. Specifically, all events emitted by instances of events.EventEmitterAsyncResource will run within its async context.

I
EventEmitterOptions
No documentation available
T
EventMap
No documentation available
T
Key
No documentation available
T
Key2
No documentation available
T
Listener
No documentation available
T
Listener1
No documentation available
T
Listener2
No documentation available
I
StaticEventEmitterOptions
No documentation available

fs

The node:fs module enables interacting with the file system in a way modeled on standard POSIX functions.

f
access

Tests a user's permissions for the file or directory specified by path. The mode argument is an optional integer that specifies the accessibility checks to be performed. mode should be either the value fs.constants.F_OK or a mask consisting of the bitwise OR of any of fs.constants.R_OK, fs.constants.W_OK, and fs.constants.X_OK (e.g.fs.constants.W_OK | fs.constants.R_OK). Check File access constants for possible values of mode.

f
accessSync

Synchronously tests a user's permissions for the file or directory specified by path. The mode argument is an optional integer that specifies the accessibility checks to be performed. mode should be either the value fs.constants.F_OK or a mask consisting of the bitwise OR of any of fs.constants.R_OK, fs.constants.W_OK, and fs.constants.X_OK (e.g.fs.constants.W_OK | fs.constants.R_OK). Check File access constants for possible values of mode.

f
appendFile

Asynchronously append data to a file, creating the file if it does not yet exist. data can be a string or a Buffer.

f
appendFileSync

Synchronously append data to a file, creating the file if it does not yet exist. data can be a string or a Buffer.

I
BigIntOptions
No documentation available
I
I
BigIntStatsFs
No documentation available
T
BigIntStatsListener
No documentation available
T
BufferEncodingOption
No documentation available
f
chmod

Asynchronously changes the permissions of a file. No arguments other than a possible exception are given to the completion callback.

f
chmodSync

For detailed information, see the documentation of the asynchronous version of this API: chmod.

f
chown

Asynchronously changes owner and group of a file. No arguments other than a possible exception are given to the completion callback.

f
chownSync

Synchronously changes owner and group of a file. Returns undefined. This is the synchronous version of chown.

f
close

Closes the file descriptor. No arguments other than a possible exception are given to the completion callback.

f
closeSync

Closes the file descriptor. Returns undefined.

N
constants
No documentation available
v
constants.COPYFILE_EXCL

Constant for fs.copyFile. Flag indicating the destination file should not be overwritten if it already exists.

v
constants.COPYFILE_FICLONE

Constant for fs.copyFile. copy operation will attempt to create a copy-on-write reflink. If the underlying platform does not support copy-on-write, then a fallback copy mechanism is used.

v
constants.COPYFILE_FICLONE_FORCE

Constant for fs.copyFile. Copy operation will attempt to create a copy-on-write reflink. If the underlying platform does not support copy-on-write, then the operation will fail with an error.

v
constants.F_OK

Constant for fs.access(). File is visible to the calling process.

v
constants.O_APPEND

Constant for fs.open(). Flag indicating that data will be appended to the end of the file.

v
constants.O_CREAT

Constant for fs.open(). Flag indicating to create the file if it does not already exist.

v
constants.O_DIRECT

Constant for fs.open(). When set, an attempt will be made to minimize caching effects of file I/O.

v
constants.O_DIRECTORY

Constant for fs.open(). Flag indicating that the open should fail if the path is not a directory.

v
constants.O_DSYNC

Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O with write operations waiting for data integrity.

v
constants.O_EXCL

Constant for fs.open(). Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists.

v
constants.O_NOATIME

constant for fs.open(). Flag indicating reading accesses to the file system will no longer result in an update to the atime information associated with the file. This flag is available on Linux operating systems only.

v
constants.O_NOCTTY

Constant for fs.open(). Flag indicating that if path identifies a terminal device, opening the path shall not cause that terminal to become the controlling terminal for the process (if the process does not already have one).

v
constants.O_NOFOLLOW

Constant for fs.open(). Flag indicating that the open should fail if the path is a symbolic link.

v
constants.O_NONBLOCK

Constant for fs.open(). Flag indicating to open the file in nonblocking mode when possible.

v
constants.O_RDONLY

Constant for fs.open(). Flag indicating to open a file for read-only access.

v
constants.O_RDWR

Constant for fs.open(). Flag indicating to open a file for read-write access.

v
constants.O_SYNC

Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O.

v
constants.O_TRUNC

Constant for fs.open(). Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero.

v
constants.O_WRONLY

Constant for fs.open(). Flag indicating to open a file for write-only access.

v
constants.R_OK

Constant for fs.access(). File can be read by the calling process.

v
constants.S_IFBLK

Constant for fs.Stats mode property for determining a file's type. File type constant for a block-oriented device file.

v
constants.S_IFCHR

Constant for fs.Stats mode property for determining a file's type. File type constant for a character-oriented device file.

v
constants.S_IFDIR

Constant for fs.Stats mode property for determining a file's type. File type constant for a directory.

v
constants.S_IFIFO

Constant for fs.Stats mode property for determining a file's type. File type constant for a FIFO/pipe.

v
constants.S_IFLNK

Constant for fs.Stats mode property for determining a file's type. File type constant for a symbolic link.

v
constants.S_IFMT

Constant for fs.Stats mode property for determining a file's type. Bit mask used to extract the file type code.

v
constants.S_IFREG

Constant for fs.Stats mode property for determining a file's type. File type constant for a regular file.

v
constants.S_IFSOCK

Constant for fs.Stats mode property for determining a file's type. File type constant for a socket.

v
constants.S_IRGRP

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by group.

v
constants.S_IROTH

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by others.

v
constants.S_IRUSR

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by owner.

v
constants.S_IRWXG

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by group.

v
constants.S_IRWXO

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by others.

v
constants.S_IRWXU

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by owner.

v
constants.S_IWGRP

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by group.

v
constants.S_IWOTH

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by others.

v
constants.S_IWUSR

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by owner.

v
constants.S_IXGRP

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by group.

v
constants.S_IXOTH

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others.

v
constants.S_IXUSR

Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by owner.

v
constants.UV_FS_O_FILEMAP

When set, a memory file mapping is used to access the file. This flag is available on Windows operating systems only. On other operating systems, this flag is ignored.

v
constants.W_OK

Constant for fs.access(). File can be written by the calling process.

v
constants.X_OK

Constant for fs.access(). File can be executed by the calling process.

f
copyFile

Asynchronously copies src to dest. By default, dest is overwritten if it already exists. No arguments other than a possible exception are given to the callback function. Node.js makes no guarantees about the atomicity of the copy operation. If an error occurs after the destination file has been opened for writing, Node.js will attempt to remove the destination.

f
copyFileSync

Synchronously copies src to dest. By default, dest is overwritten if it already exists. Returns undefined. Node.js makes no guarantees about the atomicity of the copy operation. If an error occurs after the destination file has been opened for writing, Node.js will attempt to remove the destination.

I
CopyOptions
No documentation available
I
CopySyncOptions
No documentation available
f
cp

Asynchronously copies the entire directory structure from src to dest, including subdirectories and files.

f
cpSync

Synchronously copies the entire directory structure from src to dest, including subdirectories and files.

f
createReadStream

Unlike the 16 KiB default highWaterMark for a stream.Readable, the stream returned by this method has a default highWaterMark of 64 KiB.

I
CreateReadStreamFSImplementation
No documentation available
f
createWriteStream

options may also include a start option to allow writing data at some position past the beginning of the file, allowed values are in the [0, Number.MAX_SAFE_INTEGER] range. Modifying a file rather than replacing it may require the flags option to be set to r+ rather than the default w. The encoding can be any one of those accepted by Buffer.

I
c
Dir

A class representing a directory stream.

c
Dirent

A representation of a directory entry, which can be a file or a subdirectory within the directory, as returned by reading from an fs.Dir. The directory entry is a combination of the file name and file type pairs.

T
EncodingOption
No documentation available
f
existsSync

Returns true if the path exists, false otherwise.

f
fchmod

Sets the permissions on the file. No arguments other than a possible exception are given to the completion callback.

f
fchmodSync

Sets the permissions on the file. Returns undefined.

f
fchown

Sets the owner of the file. No arguments other than a possible exception are given to the completion callback.

f
fchownSync

Sets the owner of the file. Returns undefined.

f
fdatasync

Forces all currently queued I/O operations associated with the file to the operating system's synchronized I/O completion state. Refer to the POSIX fdatasync(2) documentation for details. No arguments other than a possible exception are given to the completion callback.

f
fdatasyncSync

Forces all currently queued I/O operations associated with the file to the operating system's synchronized I/O completion state. Refer to the POSIX fdatasync(2) documentation for details. Returns undefined.

I
FSImplementation
No documentation available
f
fstat

Invokes the callback with the fs.Stats for the file descriptor.

f
fstatSync

Retrieves the fs.Stats for the file descriptor.

f
fsync

Request that all data for the open file descriptor is flushed to the storage device. The specific implementation is operating system and device specific. Refer to the POSIX fsync(2) documentation for more detail. No arguments other than a possible exception are given to the completion callback.

f
fsyncSync

Request that all data for the open file descriptor is flushed to the storage device. The specific implementation is operating system and device specific. Refer to the POSIX fsync(2) documentation for more detail. Returns undefined.

f
ftruncate

Truncates the file descriptor. No arguments other than a possible exception are given to the completion callback.

f
ftruncateSync

Truncates the file descriptor. Returns undefined.

f
futimes

Change the file system timestamps of the object referenced by the supplied file descriptor. See utimes.

f
futimesSync

Synchronous version of futimes. Returns undefined.

f
glob

Retrieves the files matching the specified pattern.

I
GlobOptions
No documentation available
I
GlobOptionsWithFileTypes
No documentation available
I
GlobOptionsWithoutFileTypes
No documentation available
f
globSync

Retrieves the files matching the specified pattern.

f
lchown

Set the owner of the symbolic link. No arguments other than a possible exception are given to the completion callback.

f
lchownSync

Set the owner for the path. Returns undefined.

f
linkSync

Creates a new link from the existingPath to the newPath. See the POSIX link(2) documentation for more detail. Returns undefined.

f
lstat

Retrieves the fs.Stats for the symbolic link referred to by the path. The callback gets two arguments (err, stats) where stats is a fs.Stats object. lstat() is identical to stat(), except that if path is a symbolic link, then the link itself is stat-ed, not the file that it refers to.

v
lstatSync

Synchronous lstat(2) - Get file status. Does not dereference symbolic links.

f
lutimes

Changes the access and modification times of a file in the same way as utimes, with the difference that if the path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps of the symbolic link itself are changed.

f
lutimesSync

Change the file system timestamps of the symbolic link referenced by path. Returns undefined, or throws an exception when parameters are incorrect or the operation fails. This is the synchronous version of lutimes.

I
MakeDirectoryOptions
No documentation available
f
mkdir

Asynchronously creates a directory.

f
mkdirSync

Synchronously creates a directory. Returns undefined, or if recursive is true, the first directory path created. This is the synchronous version of mkdir.

f
mkdtemp

Creates a unique temporary directory.

f
mkdtempSync

Returns the created directory path.

T
Mode
No documentation available
T
NoParamCallback
No documentation available
I
ObjectEncodingOptions
No documentation available
f
open

Asynchronous file open. See the POSIX open(2) documentation for more details.

f
openAsBlob

Returns a Blob whose data is backed by the given file.

I
OpenAsBlobOptions
No documentation available
f
opendir

Asynchronously open a directory. See the POSIX opendir(3) documentation for more details.

I
OpenDirOptions
No documentation available
f
opendirSync

Synchronously open a directory. See opendir(3).

T
OpenMode
No documentation available
f
openSync

Returns an integer representing the file descriptor.

T
PathLike

Valid types for path values in "fs".

T
PathOrFileDescriptor
No documentation available
N
promises

The fs/promises API provides asynchronous file system methods that return promises.

f
promises.access

Tests a user's permissions for the file or directory specified by path. The mode argument is an optional integer that specifies the accessibility checks to be performed. mode should be either the value fs.constants.F_OK or a mask consisting of the bitwise OR of any of fs.constants.R_OK, fs.constants.W_OK, and fs.constants.X_OK (e.g.fs.constants.W_OK | fs.constants.R_OK). Check File access constants for possible values of mode.

f
promises.appendFile

Asynchronously append data to a file, creating the file if it does not yet exist. data can be a string or a Buffer.

f
promises.chmod

Changes the permissions of a file.

f
promises.chown

Changes the ownership of a file.

v
promises.constants
No documentation available
f
promises.copyFile

Asynchronously copies src to dest. By default, dest is overwritten if it already exists.

f
promises.cp

Asynchronously copies the entire directory structure from src to dest, including subdirectories and files.

I
promises.FileChangeInfo
No documentation available
I
promises.FileReadResult
No documentation available
I
promises.FlagAndOpenMode
No documentation available
f
promises.glob

Retrieves the files matching the specified pattern.

f
promises.lchown

Changes the ownership on a symbolic link.

f
promises.lstat

Equivalent to fsPromises.stat() unless path refers to a symbolic link, in which case the link itself is stat-ed, not the file that it refers to. Refer to the POSIX lstat(2) document for more detail.

f
promises.lutimes

Changes the access and modification times of a file in the same way as fsPromises.utimes(), with the difference that if the path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps of the symbolic link itself are changed.

f
promises.mkdir

Asynchronously creates a directory.

f
promises.mkdtemp

Creates a unique temporary directory. A unique directory name is generated by appending six random characters to the end of the provided prefix. Due to platform inconsistencies, avoid trailing X characters in prefix. Some platforms, notably the BSDs, can return more than six random characters, and replace trailing X characters in prefix with random characters.

f
promises.open

Opens a FileHandle.

f
promises.opendir

Asynchronously open a directory for iterative scanning. See the POSIX opendir(3) documentation for more detail.

I
promises.ReadableWebStreamOptions
No documentation available
f
promises.readdir

Reads the contents of a directory.

f
promises.readFile

Asynchronously reads the entire contents of a file.

f
promises.realpath

Determines the actual location of path using the same semantics as the fs.realpath.native() function.

f
promises.rename

Renames oldPath to newPath.

f
promises.rm

Removes files and directories (modeled on the standard POSIX rm utility).

f
promises.rmdir

Removes the directory identified by path.

f
promises.stat
No documentation available
f
promises.statfs
No documentation available
f
promises.truncate

Truncates (shortens or extends the length) of the content at path to len bytes.

f
promises.utimes

Change the file system timestamps of the object referenced by path.

f
promises.watch

Returns an async iterator that watches for changes on filename, where filenameis either a file or a directory.

f
promises.writeFile

Asynchronously writes data to a file, replacing the file if it already exists. data can be a string, a buffer, an AsyncIterable, or an Iterable object.

f
read

Read data from the file specified by fd.

I
ReadAsyncOptions
No documentation available
f
readdir

Reads the contents of a directory. The callback gets two arguments (err, files) where files is an array of the names of the files in the directory excluding '.' and '..'.

f
readdirSync

Reads the contents of the directory.

f
readFile

Asynchronously reads the entire contents of a file.

f
readFileSync

Returns the contents of the path.

f
readlinkSync

Returns the symbolic link's string value.

T
ReadPosition
No documentation available
c
ReadStream

Instances of fs.ReadStream are created and returned using the createReadStream function.

I
ReadStreamOptions
No documentation available
f
readSync

Returns the number of bytesRead.

I
ReadSyncOptions
No documentation available
f
readv

Read from a file specified by fd and write to an array of ArrayBufferViews using readv().

I
ReadVResult
No documentation available
f
readvSync

For detailed information, see the documentation of the asynchronous version of this API: readv.

f
N
realpath

Asynchronously computes the canonical pathname by resolving ., .., and symbolic links.

f
f
N
realpathSync

Returns the resolved pathname.

f
realpathSync.native
No documentation available
f
rename

Asynchronously rename file at oldPath to the pathname provided as newPath. In the case that newPath already exists, it will be overwritten. If there is a directory at newPath, an error will be raised instead. No arguments other than a possible exception are given to the completion callback.

f
renameSync

Renames the file from oldPath to newPath. Returns undefined.

f
rm

Asynchronously removes files and directories (modeled on the standard POSIX rm utility). No arguments other than a possible exception are given to the completion callback.

f
rmdir

Asynchronous rmdir(2). No arguments other than a possible exception are given to the completion callback.

I
RmDirOptions
No documentation available
f
rmdirSync

Synchronous rmdir(2). Returns undefined.

I
f
rmSync

Synchronously removes files and directories (modeled on the standard POSIX rm utility). Returns undefined.

f
stat

Asynchronous stat(2). The callback gets two arguments (err, stats) wherestats is an fs.Stats object.

f
statfs

Asynchronous statfs(2). Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where statsis an fs.StatFs object.

I
StatFsOptions
No documentation available
f
statfsSync

Synchronous statfs(2). Returns information about the mounted file system which contains path.

I
StatOptions
No documentation available
c
I
Stats

A fs.Stats object provides information about a file.

c
I
StatsFs

Provides information about a mounted file system.

T
StatsListener
No documentation available
v
statSync

Synchronous stat(2) - Get file status.

I
StatSyncFn
No documentation available
I
StatSyncOptions
No documentation available
I
StatWatcher

Class: fs.StatWatcher

f
symlinkSync

Returns undefined.

T
TimeLike
No documentation available
f
truncate

Truncates the file. No arguments other than a possible exception are given to the completion callback. A file descriptor can also be passed as the first argument. In this case, fs.ftruncate() is called.

f
truncateSync

Truncates the file. Returns undefined. A file descriptor can also be passed as the first argument. In this case, fs.ftruncateSync() is called.

f
unlinkSync

Synchronous unlink(2). Returns undefined.

f
unwatchFile

Stop watching for changes on filename. If listener is specified, only that particular listener is removed. Otherwise, all listeners are removed, effectively stopping watching of filename.

f
utimes

Change the file system timestamps of the object referenced by path.

f
utimesSync

Returns undefined.

f
watch

Watch for changes on filename, where filename is either a file or a directory.

T
WatchEventType
No documentation available
f
watchFile

Watch for changes on filename. The callback listener will be called each time the file is accessed.

I
WatchFileOptions

Watch for changes on filename. The callback listener will be called each time the file is accessed.

T
WatchListener
No documentation available
I
WatchOptions
No documentation available
f
write

Write buffer to the file specified by fd.

f
writeFile
No documentation available
T
WriteFileOptions
No documentation available
f
writeFileSync
No documentation available
I
WriteStreamOptions
No documentation available
f
writeSync

For detailed information, see the documentation of the asynchronous version of this API: write.

f
writev

Write an array of ArrayBufferViews to the file specified by fd using writev().

I
WriteVResult
No documentation available
f
writevSync

For detailed information, see the documentation of the asynchronous version of this API: writev.

f
exists

Test whether or not the given path exists by checking with the file system. Then call the callback argument with either true or false:

f
lchmod

Changes the permissions on a symbolic link. No arguments other than a possible exception are given to the completion callback.

f
lchmodSync

Changes the permissions on a symbolic link. Returns undefined.

f
promises.lchmod
No documentation available

fs/promises

The fs/promises API provides asynchronous file system methods that return promises.

f
access

Tests a user's permissions for the file or directory specified by path. The mode argument is an optional integer that specifies the accessibility checks to be performed. mode should be either the value fs.constants.F_OK or a mask consisting of the bitwise OR of any of fs.constants.R_OK, fs.constants.W_OK, and fs.constants.X_OK (e.g.fs.constants.W_OK | fs.constants.R_OK). Check File access constants for possible values of mode.

f
appendFile

Asynchronously append data to a file, creating the file if it does not yet exist. data can be a string or a Buffer.

f
chmod

Changes the permissions of a file.

f
chown

Changes the ownership of a file.

v
constants
No documentation available
f
copyFile

Asynchronously copies src to dest. By default, dest is overwritten if it already exists.

f
cp

Asynchronously copies the entire directory structure from src to dest, including subdirectories and files.

I
FileChangeInfo
No documentation available
I
FileReadOptions
No documentation available
I
FileReadResult
No documentation available
I
FlagAndOpenMode
No documentation available
f
glob

Retrieves the files matching the specified pattern.

f
lchown

Changes the ownership on a symbolic link.

f
lstat

Equivalent to fsPromises.stat() unless path refers to a symbolic link, in which case the link itself is stat-ed, not the file that it refers to. Refer to the POSIX lstat(2) document for more detail.

f
lutimes

Changes the access and modification times of a file in the same way as fsPromises.utimes(), with the difference that if the path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps of the symbolic link itself are changed.

f
mkdir

Asynchronously creates a directory.

f
mkdtemp

Creates a unique temporary directory. A unique directory name is generated by appending six random characters to the end of the provided prefix. Due to platform inconsistencies, avoid trailing X characters in prefix. Some platforms, notably the BSDs, can return more than six random characters, and replace trailing X characters in prefix with random characters.

f
open

Opens a FileHandle.

f
opendir

Asynchronously open a directory for iterative scanning. See the POSIX opendir(3) documentation for more detail.

I
ReadableWebStreamOptions
No documentation available
f
readdir

Reads the contents of a directory.

f
readFile

Asynchronously reads the entire contents of a file.

f
realpath

Determines the actual location of path using the same semantics as the fs.realpath.native() function.

f
rename

Renames oldPath to newPath.

f
rm

Removes files and directories (modeled on the standard POSIX rm utility).

f
rmdir

Removes the directory identified by path.

f
stat
No documentation available
f
statfs
No documentation available
f
truncate

Truncates (shortens or extends the length) of the content at path to len bytes.

f
utimes

Change the file system timestamps of the object referenced by path.

f
watch

Returns an async iterator that watches for changes on filename, where filenameis either a file or a directory.

f
writeFile

Asynchronously writes data to a file, replacing the file if it already exists. data can be a string, a buffer, an AsyncIterable, or an Iterable object.

f
lchmod
No documentation available

http

To use the HTTP server and client one must import the node:http module.

c
Agent

An Agent is responsible for managing connection persistence and reuse for HTTP clients. It maintains a queue of pending requests for a given host and port, reusing a single socket connection for each until the queue is empty, at which time the socket is either destroyed or put into a pool where it is kept to be used again for requests to the same host and port. Whether it is destroyed or pooled depends on the keepAlive option.

v
CloseEvent
No documentation available
f
createServer

Returns a new instance of Server.

f
get
No documentation available
v
globalAgent

Global instance of Agent which is used as the default for all HTTP client requests. Diverges from a default Agent configuration by having keepAlive enabled and a timeout of 5 seconds.

c
IncomingMessage

An IncomingMessage object is created by Server or ClientRequest and passed as the first argument to the 'request' and 'response' event respectively. It may be used to access response status, headers, and data.

v
maxHeaderSize

Read-only property specifying the maximum allowed size of HTTP headers in bytes. Defaults to 16KB. Configurable using the --max-http-header-size CLI option.

v
MessageEvent
No documentation available
v
METHODS
No documentation available
T
OutgoingHttpHeader
No documentation available
f
request
No documentation available
T
RequestListener
No documentation available
I
RequestOptions
No documentation available
c
ServerResponse

This object is created internally by an HTTP server, not by the user. It is passed as the second parameter to the 'request' event.

f
setMaxIdleHTTPParsers

Set the maximum number of idle HTTP parsers.

v
STATUS_CODES
No documentation available
f
validateHeaderName

Performs the low-level validations on the provided name that are done when res.setHeader(name, value) is called.

f
validateHeaderValue

Performs the low-level validations on the provided value that are done when res.setHeader(name, value) is called.

v
WebSocket

A browser-compatible implementation of WebSocket.

http2

The node:http2 module provides an implementation of the HTTP/2 protocol. It can be accessed using:

I
AlternativeServiceOptions
No documentation available
f
connect

Returns a ClientHttp2Session instance.

N
constants
No documentation available
v
constants.DEFAULT_SETTINGS_ENABLE_PUSH
No documentation available
v
v
constants.DEFAULT_SETTINGS_MAX_FRAME_SIZE
No documentation available
v
constants.HTTP2_HEADER_ACCEPT
No documentation available
v
constants.HTTP2_HEADER_ACCEPT_CHARSET
No documentation available
v
constants.HTTP2_HEADER_ACCEPT_ENCODING
No documentation available
v
constants.HTTP2_HEADER_ACCEPT_LANGUAGE
No documentation available
v
constants.HTTP2_HEADER_ACCEPT_RANGES
No documentation available
v
constants.HTTP2_HEADER_AGE
No documentation available
v
constants.HTTP2_HEADER_ALLOW
No documentation available
v
constants.HTTP2_HEADER_AUTHORITY
No documentation available
v
constants.HTTP2_HEADER_AUTHORIZATION
No documentation available
v
constants.HTTP2_HEADER_CACHE_CONTROL
No documentation available
v
constants.HTTP2_HEADER_CONNECTION
No documentation available
v
constants.HTTP2_HEADER_CONTENT_DISPOSITION
No documentation available
v
constants.HTTP2_HEADER_CONTENT_ENCODING
No documentation available
v
constants.HTTP2_HEADER_CONTENT_LANGUAGE
No documentation available
v
constants.HTTP2_HEADER_CONTENT_LENGTH
No documentation available
v
constants.HTTP2_HEADER_CONTENT_LOCATION
No documentation available
v
constants.HTTP2_HEADER_CONTENT_MD5
No documentation available
v
constants.HTTP2_HEADER_CONTENT_RANGE
No documentation available
v
constants.HTTP2_HEADER_CONTENT_TYPE
No documentation available
v
constants.HTTP2_HEADER_DATE
No documentation available
v
constants.HTTP2_HEADER_ETAG
No documentation available
v
constants.HTTP2_HEADER_EXPECT
No documentation available
v
constants.HTTP2_HEADER_EXPIRES
No documentation available
v
constants.HTTP2_HEADER_FROM
No documentation available
v
constants.HTTP2_HEADER_HOST
No documentation available
v
constants.HTTP2_HEADER_HTTP2_SETTINGS
No documentation available
v
constants.HTTP2_HEADER_IF_MATCH
No documentation available
v
constants.HTTP2_HEADER_IF_MODIFIED_SINCE
No documentation available
v
constants.HTTP2_HEADER_IF_NONE_MATCH
No documentation available
v
constants.HTTP2_HEADER_IF_RANGE
No documentation available
v
constants.HTTP2_HEADER_IF_UNMODIFIED_SINCE
No documentation available
v
constants.HTTP2_HEADER_KEEP_ALIVE
No documentation available
v
constants.HTTP2_HEADER_LAST_MODIFIED
No documentation available
v
constants.HTTP2_HEADER_LOCATION
No documentation available
v
constants.HTTP2_HEADER_MAX_FORWARDS
No documentation available
v
constants.HTTP2_HEADER_METHOD
No documentation available
v
constants.HTTP2_HEADER_PATH
No documentation available
v
constants.HTTP2_HEADER_PREFER
No documentation available
v
constants.HTTP2_HEADER_PROXY_AUTHENTICATE
No documentation available
v
constants.HTTP2_HEADER_PROXY_AUTHORIZATION
No documentation available
v
constants.HTTP2_HEADER_PROXY_CONNECTION
No documentation available
v
constants.HTTP2_HEADER_RANGE
No documentation available
v
constants.HTTP2_HEADER_REFERER
No documentation available
v
constants.HTTP2_HEADER_REFRESH
No documentation available
v
constants.HTTP2_HEADER_RETRY_AFTER
No documentation available
v
constants.HTTP2_HEADER_SCHEME
No documentation available
v
constants.HTTP2_HEADER_SERVER
No documentation available
v
constants.HTTP2_HEADER_STATUS
No documentation available
v
constants.HTTP2_HEADER_TE
No documentation available
v
constants.HTTP2_HEADER_TRANSFER_ENCODING
No documentation available
v
constants.HTTP2_HEADER_UPGRADE
No documentation available
v
constants.HTTP2_HEADER_USER_AGENT
No documentation available
v
constants.HTTP2_HEADER_VARY
No documentation available
v
constants.HTTP2_HEADER_VIA
No documentation available
v
constants.HTTP2_HEADER_WWW_AUTHENTICATE
No documentation available
v
constants.HTTP2_METHOD_ACL
No documentation available
v
constants.HTTP2_METHOD_BASELINE_CONTROL
No documentation available
v
constants.HTTP2_METHOD_BIND
No documentation available
v
constants.HTTP2_METHOD_CHECKIN
No documentation available
v
constants.HTTP2_METHOD_CHECKOUT
No documentation available
v
constants.HTTP2_METHOD_CONNECT
No documentation available
v
constants.HTTP2_METHOD_COPY
No documentation available
v
constants.HTTP2_METHOD_DELETE
No documentation available
v
constants.HTTP2_METHOD_GET
No documentation available
v
constants.HTTP2_METHOD_HEAD
No documentation available
v
constants.HTTP2_METHOD_LABEL
No documentation available
v
constants.HTTP2_METHOD_LOCK
No documentation available
v
constants.HTTP2_METHOD_MERGE
No documentation available
v
constants.HTTP2_METHOD_MKACTIVITY
No documentation available
v
constants.HTTP2_METHOD_MKCALENDAR
No documentation available
v
constants.HTTP2_METHOD_MKCOL
No documentation available
v
constants.HTTP2_METHOD_MKREDIRECTREF
No documentation available
v
constants.HTTP2_METHOD_MKWORKSPACE
No documentation available
v
constants.HTTP2_METHOD_MOVE
No documentation available
v
constants.HTTP2_METHOD_OPTIONS
No documentation available
v
constants.HTTP2_METHOD_ORDERPATCH
No documentation available
v
constants.HTTP2_METHOD_PATCH
No documentation available
v
constants.HTTP2_METHOD_POST
No documentation available
v
constants.HTTP2_METHOD_PRI
No documentation available
v
constants.HTTP2_METHOD_PROPFIND
No documentation available
v
constants.HTTP2_METHOD_PROPPATCH
No documentation available
v
constants.HTTP2_METHOD_PUT
No documentation available
v
constants.HTTP2_METHOD_REBIND
No documentation available
v
constants.HTTP2_METHOD_REPORT
No documentation available
v
constants.HTTP2_METHOD_TRACE
No documentation available
v
constants.HTTP2_METHOD_UNBIND
No documentation available
v
constants.HTTP2_METHOD_UNCHECKOUT
No documentation available
v
constants.HTTP2_METHOD_UNLOCK
No documentation available
v
constants.HTTP2_METHOD_UPDATE
No documentation available
v
constants.HTTP2_METHOD_UPDATEREDIRECTREF
No documentation available
v
constants.HTTP2_METHOD_VERSION_CONTROL
No documentation available
v
constants.HTTP_STATUS_ACCEPTED
No documentation available
v
constants.HTTP_STATUS_ALREADY_REPORTED
No documentation available
v
constants.HTTP_STATUS_BAD_GATEWAY
No documentation available
v
constants.HTTP_STATUS_BAD_REQUEST
No documentation available
v
constants.HTTP_STATUS_CONFLICT
No documentation available
v
constants.HTTP_STATUS_CONTINUE
No documentation available
v
constants.HTTP_STATUS_CREATED
No documentation available
v
constants.HTTP_STATUS_EXPECTATION_FAILED
No documentation available
v
constants.HTTP_STATUS_FAILED_DEPENDENCY
No documentation available
v
constants.HTTP_STATUS_FORBIDDEN
No documentation available
v
constants.HTTP_STATUS_FOUND
No documentation available
v
constants.HTTP_STATUS_GATEWAY_TIMEOUT
No documentation available
v
constants.HTTP_STATUS_GONE
No documentation available
v
constants.HTTP_STATUS_IM_USED
No documentation available
v
constants.HTTP_STATUS_INSUFFICIENT_STORAGE
No documentation available
v
v
constants.HTTP_STATUS_LENGTH_REQUIRED
No documentation available
v
constants.HTTP_STATUS_LOCKED
No documentation available
v
constants.HTTP_STATUS_LOOP_DETECTED
No documentation available
v
constants.HTTP_STATUS_METHOD_NOT_ALLOWED
No documentation available
v
constants.HTTP_STATUS_MISDIRECTED_REQUEST
No documentation available
v
constants.HTTP_STATUS_MOVED_PERMANENTLY
No documentation available
v
constants.HTTP_STATUS_MULTI_STATUS
No documentation available
v
constants.HTTP_STATUS_MULTIPLE_CHOICES
No documentation available
v
constants.HTTP_STATUS_NO_CONTENT
No documentation available
v
constants.HTTP_STATUS_NOT_ACCEPTABLE
No documentation available
v
constants.HTTP_STATUS_NOT_EXTENDED
No documentation available
v
constants.HTTP_STATUS_NOT_FOUND
No documentation available
v
constants.HTTP_STATUS_NOT_IMPLEMENTED
No documentation available
v
constants.HTTP_STATUS_NOT_MODIFIED
No documentation available
v
constants.HTTP_STATUS_OK
No documentation available
v
constants.HTTP_STATUS_PARTIAL_CONTENT
No documentation available
v
constants.HTTP_STATUS_PAYLOAD_TOO_LARGE
No documentation available
v
constants.HTTP_STATUS_PAYMENT_REQUIRED
No documentation available
v
constants.HTTP_STATUS_PERMANENT_REDIRECT
No documentation available
v
constants.HTTP_STATUS_PRECONDITION_FAILED
No documentation available
v
v
constants.HTTP_STATUS_PROCESSING
No documentation available
v
v
constants.HTTP_STATUS_REQUEST_TIMEOUT
No documentation available
v
constants.HTTP_STATUS_RESET_CONTENT
No documentation available
v
constants.HTTP_STATUS_SEE_OTHER
No documentation available
v
constants.HTTP_STATUS_SERVICE_UNAVAILABLE
No documentation available
v
constants.HTTP_STATUS_SWITCHING_PROTOCOLS
No documentation available
v
constants.HTTP_STATUS_TEAPOT
No documentation available
v
constants.HTTP_STATUS_TEMPORARY_REDIRECT
No documentation available
v
constants.HTTP_STATUS_TOO_MANY_REQUESTS
No documentation available
v
constants.HTTP_STATUS_UNAUTHORIZED
No documentation available
v
constants.HTTP_STATUS_UNORDERED_COLLECTION
No documentation available
v
constants.HTTP_STATUS_UNPROCESSABLE_ENTITY
No documentation available
v
v
constants.HTTP_STATUS_UPGRADE_REQUIRED
No documentation available
v
constants.HTTP_STATUS_URI_TOO_LONG
No documentation available
v
constants.HTTP_STATUS_USE_PROXY
No documentation available
v
v
constants.MAX_INITIAL_WINDOW_SIZE
No documentation available
v
constants.MAX_MAX_FRAME_SIZE
No documentation available
v
constants.MIN_MAX_FRAME_SIZE
No documentation available
v
constants.NGHTTP2_CANCEL
No documentation available
v
constants.NGHTTP2_COMPRESSION_ERROR
No documentation available
v
constants.NGHTTP2_CONNECT_ERROR
No documentation available
v
constants.NGHTTP2_DEFAULT_WEIGHT
No documentation available
v
constants.NGHTTP2_ENHANCE_YOUR_CALM
No documentation available
v
constants.NGHTTP2_ERR_FRAME_SIZE_ERROR
No documentation available
v
constants.NGHTTP2_FLAG_ACK
No documentation available
v
constants.NGHTTP2_FLAG_END_HEADERS
No documentation available
v
constants.NGHTTP2_FLAG_END_STREAM
No documentation available
v
constants.NGHTTP2_FLAG_NONE
No documentation available
v
constants.NGHTTP2_FLAG_PADDED
No documentation available
v
constants.NGHTTP2_FLAG_PRIORITY
No documentation available
v
constants.NGHTTP2_FLOW_CONTROL_ERROR
No documentation available
v
constants.NGHTTP2_FRAME_SIZE_ERROR
No documentation available
v
constants.NGHTTP2_HTTP_1_1_REQUIRED
No documentation available
v
constants.NGHTTP2_INADEQUATE_SECURITY
No documentation available
v
constants.NGHTTP2_INTERNAL_ERROR
No documentation available
v
constants.NGHTTP2_NO_ERROR
No documentation available
v
constants.NGHTTP2_PROTOCOL_ERROR
No documentation available
v
constants.NGHTTP2_REFUSED_STREAM
No documentation available
v
constants.NGHTTP2_SESSION_CLIENT
No documentation available
v
constants.NGHTTP2_SESSION_SERVER
No documentation available
v
constants.NGHTTP2_SETTINGS_ENABLE_PUSH
No documentation available
v
v
constants.NGHTTP2_SETTINGS_MAX_FRAME_SIZE
No documentation available
v
constants.NGHTTP2_SETTINGS_TIMEOUT
No documentation available
v
constants.NGHTTP2_STREAM_CLOSED
No documentation available
v
constants.NGHTTP2_STREAM_STATE_CLOSED
No documentation available
v
constants.NGHTTP2_STREAM_STATE_IDLE
No documentation available
v
constants.NGHTTP2_STREAM_STATE_OPEN
No documentation available
v
v
constants.PADDING_STRATEGY_CALLBACK
No documentation available
v
constants.PADDING_STRATEGY_MAX
No documentation available
v
constants.PADDING_STRATEGY_NONE
No documentation available
f
createSecureServer

Returns a tls.Server instance that creates and manages Http2Session instances.

f
createServer

Returns a net.Server instance that creates and manages Http2Session instances.

f
getDefaultSettings
No documentation available
f
getPackedSettings
No documentation available
f
getUnpackedSettings
No documentation available
I
HTTP2ServerCommon
No documentation available
c
Http2ServerRequest

A Http2ServerRequest object is created by Server or SecureServer and passed as the first argument to the 'request' event. It may be used to access a request status, headers, and data.

I
IncomingHttpStatusHeader
No documentation available
f
performServerHandshake

Create an HTTP/2 server session from an existing socket.

I
SecureClientSessionOptions
No documentation available
I
SecureServerOptions
No documentation available
I
SecureServerSessionOptions
No documentation available
v
sensitiveHeaders

This symbol can be set as a property on the HTTP/2 headers object with an array value in order to provide a list of headers considered sensitive.

I
ServerOptions
No documentation available
I
StatOptions
No documentation available

https

HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a separate module.

c
Agent

An Agent object for HTTPS similar to http.Agent. See request for more information.

f
get

Like http.get() but for HTTPS.

v
globalAgent
No documentation available
f
request

Makes a request to a secure web server.

T
RequestOptions
No documentation available
T
ServerOptions
No documentation available
f
close

Deactivate the inspector. Blocks until there are no active connections.

N
Console
No documentation available
v
console

An object to send messages to the remote inspector console.

I
Console.MessageAddedEventDataType
No documentation available
N
Debugger
No documentation available
T
Debugger.BreakpointId

Breakpoint identifier.

I
Debugger.CallFrame

JavaScript call frame. Array of call frames form the call stack.

T
Debugger.CallFrameId

Call frame identifier.

I
Debugger.EnableReturnType
No documentation available
I
I
Debugger.GetStackTraceReturnType
No documentation available
I
I
I
Debugger.ScriptPosition

Location in the source code.

I
Debugger.SearchInContentReturnType
No documentation available
I
Debugger.SearchMatch

Search match for resource.

I
I
Debugger.SetSkipAllPausesParameterType
No documentation available
N
HeapProfiler
No documentation available
T
HeapProfiler.HeapSnapshotObjectId

Heap snapshot object id.

I
HeapProfiler.SamplingHeapProfileNode

Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.

I
HeapProfiler.StopSamplingReturnType
No documentation available
I
InspectorNotification
No documentation available
N
Network
No documentation available
I
Network.Headers

Request / response headers as keys / values of JSON object.

f
Network.loadingFailed

This feature is only available with the --experimental-network-inspection flag enabled.

f
Network.loadingFinished

This feature is only available with the --experimental-network-inspection flag enabled.

T
Network.MonotonicTime

Monotonically increasing time in seconds since an arbitrary point in the past.

I
T
Network.RequestId

Unique request identifier.

f
Network.requestWillBeSent

This feature is only available with the --experimental-network-inspection flag enabled.

T
Network.ResourceType

Resource type as it was perceived by the rendering engine.

f
Network.responseReceived

This feature is only available with the --experimental-network-inspection flag enabled.

T
Network.TimeSinceEpoch

UTC time in seconds, counted from January 1, 1970.

N
NodeRuntime
No documentation available
N
NodeTracing
No documentation available
I
I
I
NodeTracing.StartParameterType
No documentation available
N
NodeWorker
No documentation available
I
NodeWorker.DetachParameterType
No documentation available
T
NodeWorker.SessionID

Unique identifier of attached debugging session.

T
NodeWorker.WorkerID
No documentation available
I
NodeWorker.WorkerInfo
No documentation available
f
open

Activate inspector on host and port. Equivalent to node --inspect=[[host:]port], but can be done programmatically after node has started.

N
Profiler
No documentation available
I
Profiler.CoverageRange

Coverage data for a source range.

I
Profiler.FunctionCoverage

Coverage data for a JavaScript function.

I
Profiler.PositionTickInfo

Specifies a number of samples attributed to a certain source position.

I
Profiler.ProfileNode

Profile node. Holds callsite information, execution statistics and child nodes.

I
Profiler.ScriptCoverage

Coverage data for a JavaScript script.

I
Profiler.StopReturnType
No documentation available
I
N
Runtime
No documentation available
I
Runtime.CallArgument

Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified.

I
Runtime.CallFrame

Stack entry for runtime errors and assertions.

I
Runtime.EntryPreview
No documentation available
I
Runtime.ExceptionDetails

Detailed information about exception (or error) that was thrown during script compilation or execution.

I
T
Runtime.ExecutionContextId

Id of an execution context.

I
Runtime.InternalPropertyDescriptor

Object internal property descriptor. This property isn't normally visible in JavaScript code.

I
Runtime.ObjectPreview

Object containing abbreviated remote object value.

I
Runtime.QueryObjectsReturnType
No documentation available
I
Runtime.ReleaseObjectParameterType
No documentation available
T
Runtime.RemoteObjectId

Unique object identifier.

T
Runtime.ScriptId

Unique script identifier.

I
Runtime.StackTrace

Call frames for assertions or error messages.

I
Runtime.StackTraceId

If debuggerId is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See Runtime.StackTrace and Debugger.paused for usages.

T
Runtime.Timestamp

Number of milliseconds since epoch.

T
Runtime.UniqueDebuggerId

Unique identifier of current debugger.

T
Runtime.UnserializableValue

Primitive value which cannot be JSON-stringified.

N
Schema
No documentation available
I
Schema.Domain

Description of the protocol domain.

I
Schema.GetDomainsReturnType
No documentation available
c
Session

The inspector.Session is used for dispatching messages to the V8 inspector back-end and receiving message responses and notifications.

f
url

Return the URL of the active inspector, or undefined if there is none.

f
waitForDebugger

Blocks until a client (existing or connected later) has sent Runtime.runIfWaitingForDebugger command.

inspector/promises

The node:inspector/promises module provides an API for interacting with the V8 inspector.

f
close

Deactivate the inspector. Blocks until there are no active connections.

N
Console
No documentation available
v
console

An object to send messages to the remote inspector console.

I
Console.MessageAddedEventDataType
No documentation available
N
Debugger
No documentation available
T
Debugger.BreakpointId

Breakpoint identifier.

I
Debugger.CallFrame

JavaScript call frame. Array of call frames form the call stack.

T
Debugger.CallFrameId

Call frame identifier.

I
Debugger.EnableReturnType
No documentation available
I
I
Debugger.GetStackTraceReturnType
No documentation available
I
I
I
Debugger.ScriptPosition

Location in the source code.

I
Debugger.SearchInContentReturnType
No documentation available
I
Debugger.SearchMatch

Search match for resource.

I
I
Debugger.SetSkipAllPausesParameterType
No documentation available
N
HeapProfiler
No documentation available
T
HeapProfiler.HeapSnapshotObjectId

Heap snapshot object id.

I
HeapProfiler.SamplingHeapProfileNode

Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.

I
HeapProfiler.StopSamplingReturnType
No documentation available
I
InspectorNotification
No documentation available
N
Network
No documentation available
I
Network.Headers

Request / response headers as keys / values of JSON object.

f
Network.loadingFailed

This feature is only available with the --experimental-network-inspection flag enabled.

f
Network.loadingFinished

This feature is only available with the --experimental-network-inspection flag enabled.

T
Network.MonotonicTime

Monotonically increasing time in seconds since an arbitrary point in the past.

I
T
Network.RequestId

Unique request identifier.

f
Network.requestWillBeSent

This feature is only available with the --experimental-network-inspection flag enabled.

T
Network.ResourceType

Resource type as it was perceived by the rendering engine.

f
Network.responseReceived

This feature is only available with the --experimental-network-inspection flag enabled.

T
Network.TimeSinceEpoch

UTC time in seconds, counted from January 1, 1970.

N
NodeRuntime
No documentation available
N
NodeTracing
No documentation available
I
I
I
NodeTracing.StartParameterType
No documentation available
N
NodeWorker
No documentation available
I
NodeWorker.DetachParameterType
No documentation available
T
NodeWorker.SessionID

Unique identifier of attached debugging session.

T
NodeWorker.WorkerID
No documentation available
I
NodeWorker.WorkerInfo
No documentation available
f
open

Activate inspector on host and port. Equivalent to node --inspect=[[host:]port], but can be done programmatically after node has started.

N
Profiler
No documentation available
I
Profiler.CoverageRange

Coverage data for a source range.

I
Profiler.FunctionCoverage

Coverage data for a JavaScript function.

I
Profiler.PositionTickInfo

Specifies a number of samples attributed to a certain source position.

I
Profiler.ProfileNode

Profile node. Holds callsite information, execution statistics and child nodes.

I
Profiler.ScriptCoverage

Coverage data for a JavaScript script.

I
Profiler.StopReturnType
No documentation available
I
N
Runtime
No documentation available
I
Runtime.CallArgument

Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified.

I
Runtime.CallFrame

Stack entry for runtime errors and assertions.

I
Runtime.EntryPreview
No documentation available
I
Runtime.ExceptionDetails

Detailed information about exception (or error) that was thrown during script compilation or execution.

I
T
Runtime.ExecutionContextId

Id of an execution context.

I
Runtime.InternalPropertyDescriptor

Object internal property descriptor. This property isn't normally visible in JavaScript code.

I
Runtime.ObjectPreview

Object containing abbreviated remote object value.

I
Runtime.QueryObjectsReturnType
No documentation available
I
Runtime.ReleaseObjectParameterType
No documentation available
T
Runtime.RemoteObjectId

Unique object identifier.

T
Runtime.ScriptId

Unique script identifier.

I
Runtime.StackTrace

Call frames for assertions or error messages.

I
Runtime.StackTraceId

If debuggerId is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See Runtime.StackTrace and Debugger.paused for usages.

T
Runtime.Timestamp

Number of milliseconds since epoch.

T
Runtime.UniqueDebuggerId

Unique identifier of current debugger.

T
Runtime.UnserializableValue

Primitive value which cannot be JSON-stringified.

N
Schema
No documentation available
I
Schema.Domain

Description of the protocol domain.

I
Schema.GetDomainsReturnType
No documentation available
c
Session

The inspector.Session is used for dispatching messages to the V8 inspector back-end and receiving message responses and notifications.

f
url

Return the URL of the active inspector, or undefined if there is none.

f
waitForDebugger

Blocks until a client (existing or connected later) has sent Runtime.runIfWaitingForDebugger command.

I
ImportMeta
No documentation available
f
Module.findSourceMap

path is the resolved path for the file for which a corresponding source map should be fetched.

I
Module.GlobalPreloadContext
No documentation available
I
Module.ImportAttributes
No documentation available
T
Module.InitializeHook

The initialize hook provides a way to define a custom function that runs in the hooks thread when the hooks module is initialized. Initialization happens when the hooks module is registered via register.

I
T
Module.LoadHook

The load hook provides a way to define a custom method of determining how a URL should be interpreted, retrieved, and parsed. It is also in charge of validating the import assertion.

T
Module.ModuleFormat
No documentation available
T
Module.ModuleSource
No documentation available
T
Module.ResolveHook

The resolve hook chain is responsible for resolving file URL for a given module specifier and parent URL, and optionally its format (such as 'module') as a hint to the load hook. If a format is specified, the load hook is ultimately responsible for providing the final format value (and it is free to ignore the hint provided by resolve); if resolve provides a format, a custom load hook is required even if only to pass the value to the Node.js default load hook.

c
Module.SourceMap
No documentation available
f
Module.syncBuiltinESMExports

The module.syncBuiltinESMExports() method updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports. It does not add or remove exported names from the ES Modules.

I
RegisterOptions
No documentation available
T
Module.GlobalPreloadHook
No documentation available

net

Stability: 2 - Stable

I
AddressInfo
No documentation available
c
BlockList

The BlockList object can be used with some network APIs to specify rules for disabling inbound or outbound access to specific IP addresses, IP ranges, or IP subnets.

f
f
createConnection

A factory function, which creates a new Socket, immediately initiates connection with socket.connect(), then returns the net.Socket that starts the connection.

f
createServer

Creates a new TCP or IPC server.

f
getDefaultAutoSelectFamily

Gets the current default value of the autoSelectFamily option of socket.connect(options). The initial default value is true, unless the command line option--no-network-family-autoselection is provided.

f
getDefaultAutoSelectFamilyAttemptTimeout

Gets the current default value of the autoSelectFamilyAttemptTimeout option of socket.connect(options). The initial default value is 250 or the value specified via the command line option --network-family-autoselection-attempt-timeout.

I
IpcNetConnectOpts
No documentation available
I
IpcSocketConnectOpts
No documentation available
T
IPVersion
No documentation available
f
isIP

Returns 6 if input is an IPv6 address. Returns 4 if input is an IPv4 address in dot-decimal notation with no leading zeroes. Otherwise, returns0.

f
isIPv4

Returns true if input is an IPv4 address in dot-decimal notation with no leading zeroes. Otherwise, returns false.

f
isIPv6

Returns true if input is an IPv6 address. Otherwise, returns false.

T
LookupFunction
No documentation available
T
NetConnectOpts
No documentation available
I
OnReadOpts
No documentation available
f
setDefaultAutoSelectFamily

Sets the default value of the autoSelectFamily option of socket.connect(options).

f
setDefaultAutoSelectFamilyAttemptTimeout

Sets the default value of the autoSelectFamilyAttemptTimeout option of socket.connect(options).

c
SocketAddress
No documentation available
T
SocketConnectOpts
No documentation available
T
SocketReadyState
No documentation available
I
TcpNetConnectOpts
No documentation available
I
ConnectOpts
No documentation available

os

The node:os module provides operating system-related utility methods and properties. It can be accessed using:

f
arch

Returns the operating system CPU architecture for which the Node.js binary was compiled. Possible values are 'arm', 'arm64', 'ia32', 'loong64', 'mips', 'mipsel', 'ppc', 'ppc64', 'riscv64', 's390', 's390x', and 'x64'.

f
availableParallelism

Returns an estimate of the default amount of parallelism a program should use. Always returns a value greater than zero.

N
constants
No documentation available
N
constants.dlopen
No documentation available
v
constants.dlopen.RTLD_DEEPBIND
No documentation available
v
constants.dlopen.RTLD_GLOBAL
No documentation available
v
constants.dlopen.RTLD_LAZY
No documentation available
v
constants.dlopen.RTLD_LOCAL
No documentation available
v
constants.dlopen.RTLD_NOW
No documentation available
N
constants.errno
No documentation available
v
constants.errno.E2BIG
No documentation available
v
constants.errno.EACCES
No documentation available
v
constants.errno.EADDRINUSE
No documentation available
v
constants.errno.EADDRNOTAVAIL
No documentation available
v
constants.errno.EAFNOSUPPORT
No documentation available
v
constants.errno.EAGAIN
No documentation available
v
constants.errno.EALREADY
No documentation available
v
constants.errno.EBADF
No documentation available
v
constants.errno.EBADMSG
No documentation available
v
constants.errno.EBUSY
No documentation available
v
constants.errno.ECANCELED
No documentation available
v
constants.errno.ECHILD
No documentation available
v
constants.errno.ECONNABORTED
No documentation available
v
constants.errno.ECONNREFUSED
No documentation available
v
constants.errno.ECONNRESET
No documentation available
v
constants.errno.EDEADLK
No documentation available
v
constants.errno.EDESTADDRREQ
No documentation available
v
constants.errno.EDOM
No documentation available
v
constants.errno.EDQUOT
No documentation available
v
constants.errno.EEXIST
No documentation available
v
constants.errno.EFAULT
No documentation available
v
constants.errno.EFBIG
No documentation available
v
constants.errno.EHOSTUNREACH
No documentation available
v
constants.errno.EIDRM
No documentation available
v
constants.errno.EILSEQ
No documentation available
v
constants.errno.EINPROGRESS
No documentation available
v
constants.errno.EINTR
No documentation available
v
constants.errno.EINVAL
No documentation available
v
constants.errno.EIO
No documentation available
v
constants.errno.EISCONN
No documentation available
v
constants.errno.EISDIR
No documentation available
v
constants.errno.ELOOP
No documentation available
v
constants.errno.EMFILE
No documentation available
v
constants.errno.EMSGSIZE
No documentation available
v
constants.errno.EMULTIHOP
No documentation available
v
constants.errno.ENAMETOOLONG
No documentation available
v
constants.errno.ENETDOWN
No documentation available
v
constants.errno.ENETRESET
No documentation available
v
constants.errno.ENETUNREACH
No documentation available
v
constants.errno.ENFILE
No documentation available
v
constants.errno.ENOBUFS
No documentation available
v
constants.errno.ENODATA
No documentation available
v
constants.errno.ENODEV
No documentation available
v
constants.errno.ENOENT
No documentation available
v
constants.errno.ENOEXEC
No documentation available
v
constants.errno.ENOLCK
No documentation available
v
constants.errno.ENOMEM
No documentation available
v
constants.errno.ENOMSG
No documentation available
v
constants.errno.ENOPROTOOPT
No documentation available
v
constants.errno.ENOSPC
No documentation available
v
constants.errno.ENOSR
No documentation available
v
constants.errno.ENOSTR
No documentation available
v
constants.errno.ENOSYS
No documentation available
v
constants.errno.ENOTCONN
No documentation available
v
constants.errno.ENOTDIR
No documentation available
v
constants.errno.ENOTEMPTY
No documentation available
v
constants.errno.ENOTSOCK
No documentation available
v
constants.errno.ENOTSUP
No documentation available
v
constants.errno.ENOTTY
No documentation available
v
constants.errno.ENXIO
No documentation available
v
constants.errno.EOPNOTSUPP
No documentation available
v
constants.errno.EOVERFLOW
No documentation available
v
constants.errno.EPERM
No documentation available
v
constants.errno.EPIPE
No documentation available
v
constants.errno.EPROTO
No documentation available
v
constants.errno.EPROTONOSUPPORT
No documentation available
v
constants.errno.EPROTOTYPE
No documentation available
v
constants.errno.ERANGE
No documentation available
v
constants.errno.EROFS
No documentation available
v
constants.errno.ESPIPE
No documentation available
v
constants.errno.ESRCH
No documentation available
v
constants.errno.ESTALE
No documentation available
v
constants.errno.ETIME
No documentation available
v
constants.errno.ETIMEDOUT
No documentation available
v
constants.errno.ETXTBSY
No documentation available
v
constants.errno.EWOULDBLOCK
No documentation available
v
constants.errno.EXDEV
No documentation available
v
constants.errno.WSA_E_CANCELLED
No documentation available
v
constants.errno.WSA_E_NO_MORE
No documentation available
v
constants.errno.WSAEACCES
No documentation available
v
constants.errno.WSAEADDRINUSE
No documentation available
v
constants.errno.WSAEADDRNOTAVAIL
No documentation available
v
constants.errno.WSAEAFNOSUPPORT
No documentation available
v
constants.errno.WSAEALREADY
No documentation available
v
constants.errno.WSAEBADF
No documentation available
v
constants.errno.WSAECANCELLED
No documentation available
v
constants.errno.WSAECONNABORTED
No documentation available
v
constants.errno.WSAECONNREFUSED
No documentation available
v
constants.errno.WSAECONNRESET
No documentation available
v
constants.errno.WSAEDESTADDRREQ
No documentation available
v
constants.errno.WSAEDISCON
No documentation available
v
constants.errno.WSAEDQUOT
No documentation available
v
constants.errno.WSAEFAULT
No documentation available
v
constants.errno.WSAEHOSTDOWN
No documentation available
v
constants.errno.WSAEHOSTUNREACH
No documentation available
v
constants.errno.WSAEINPROGRESS
No documentation available
v
constants.errno.WSAEINTR
No documentation available
v
constants.errno.WSAEINVAL
No documentation available
v
constants.errno.WSAEINVALIDPROCTABLE
No documentation available
v
constants.errno.WSAEINVALIDPROVIDER
No documentation available
v
constants.errno.WSAEISCONN
No documentation available
v
constants.errno.WSAELOOP
No documentation available
v
constants.errno.WSAEMFILE
No documentation available
v
constants.errno.WSAEMSGSIZE
No documentation available
v
constants.errno.WSAENAMETOOLONG
No documentation available
v
constants.errno.WSAENETDOWN
No documentation available
v
constants.errno.WSAENETRESET
No documentation available
v
constants.errno.WSAENETUNREACH
No documentation available
v
constants.errno.WSAENOBUFS
No documentation available
v
constants.errno.WSAENOMORE
No documentation available
v
constants.errno.WSAENOPROTOOPT
No documentation available
v
constants.errno.WSAENOTCONN
No documentation available
v
constants.errno.WSAENOTEMPTY
No documentation available
v
constants.errno.WSAENOTSOCK
No documentation available
v
constants.errno.WSAEOPNOTSUPP
No documentation available
v
constants.errno.WSAEPFNOSUPPORT
No documentation available
v
constants.errno.WSAEPROCLIM
No documentation available
v
constants.errno.WSAEPROTONOSUPPORT
No documentation available
v
constants.errno.WSAEPROTOTYPE
No documentation available
v
constants.errno.WSAEPROVIDERFAILEDINIT
No documentation available
v
constants.errno.WSAEREFUSED
No documentation available
v
constants.errno.WSAEREMOTE
No documentation available
v
constants.errno.WSAESHUTDOWN
No documentation available
v
constants.errno.WSAESOCKTNOSUPPORT
No documentation available
v
constants.errno.WSAESTALE
No documentation available
v
constants.errno.WSAETIMEDOUT
No documentation available
v
constants.errno.WSAETOOMANYREFS
No documentation available
v
constants.errno.WSAEUSERS
No documentation available
v
constants.errno.WSAEWOULDBLOCK
No documentation available
v
constants.errno.WSANOTINITIALISED
No documentation available
v
constants.errno.WSASERVICE_NOT_FOUND
No documentation available
v
constants.errno.WSASYSCALLFAILURE
No documentation available
v
constants.errno.WSASYSNOTREADY
No documentation available
v
constants.errno.WSATYPE_NOT_FOUND
No documentation available
v
constants.errno.WSAVERNOTSUPPORTED
No documentation available
N
constants.priority
No documentation available
v
constants.priority.PRIORITY_ABOVE_NORMAL
No documentation available
v
constants.priority.PRIORITY_BELOW_NORMAL
No documentation available
v
constants.priority.PRIORITY_HIGH
No documentation available
v
constants.priority.PRIORITY_HIGHEST
No documentation available
v
constants.priority.PRIORITY_LOW
No documentation available
v
constants.priority.PRIORITY_NORMAL
No documentation available
N
v
constants.signals
No documentation available
v
constants.UV_UDP_REUSEADDR
No documentation available
I
CpuInfo

The node:os module provides operating system-related utility methods and properties. It can be accessed using:

f
cpus

Returns an array of objects containing information about each logical CPU core. The array will be empty if no CPU information is available, such as if the /proc file system is unavailable.

v
devNull
No documentation available
f
endianness

Returns a string identifying the endianness of the CPU for which the Node.js binary was compiled.

v
EOL

The operating system-specific end-of-line marker.

f
freemem

Returns the amount of free system memory in bytes as an integer.

f
getPriority

Returns the scheduling priority for the process specified by pid. If pid is not provided or is 0, the priority of the current process is returned.

f
homedir

Returns the string path of the current user's home directory.

f
hostname

Returns the host name of the operating system as a string.

f
loadavg

Returns an array containing the 1, 5, and 15 minute load averages.

f
machine

Returns the machine type as a string, such as arm, arm64, aarch64, mips, mips64, ppc64, ppc64le, s390, s390x, i386, i686, x86_64.

T
NetworkInterfaceInfo
No documentation available
I
NetworkInterfaceInfoIPv4
No documentation available
I
NetworkInterfaceInfoIPv6
No documentation available
f
networkInterfaces

Returns an object containing network interfaces that have been assigned a network address.

f
platform

Returns a string identifying the operating system platform for which the Node.js binary was compiled. The value is set at compile time. Possible values are 'aix', 'darwin', 'freebsd', 'linux', 'openbsd', 'sunos', and 'win32'.

f
release

Returns the operating system as a string.

f
setPriority

Attempts to set the scheduling priority for the process specified by pid. If pid is not provided or is 0, the process ID of the current process is used.

T
SignalConstants
No documentation available
f
tmpdir

Returns the operating system's default directory for temporary files as a string.

f
totalmem

Returns the total amount of system memory in bytes as an integer.

f
type

Returns the operating system name as returned by uname(3). For example, it returns 'Linux' on Linux, 'Darwin' on macOS, and 'Windows_NT' on Windows.

f
uptime

Returns the system uptime in number of seconds.

I
UserInfo
No documentation available
f
userInfo

Returns information about the currently effective user. On POSIX platforms, this is typically a subset of the password file. The returned object includes the username, uid, gid, shell, and homedir. On Windows, the uid and gid fields are -1, and shell is null.

f
version

Returns a string identifying the kernel version.

path

The node:path module provides utilities for working with file and directory paths. It can be accessed using:

N
v
default

The node:path module provides utilities for working with file and directory paths. It can be accessed using:

I
default.ParsedPath

A parsed path object generated by path.parse() or consumed by path.format().

N
v
path

The node:path module provides utilities for working with file and directory paths. It can be accessed using:

I
I
path.ParsedPath

A parsed path object generated by path.parse() or consumed by path.format().

perf_hooks

This module provides an implementation of a subset of the W3C Web Performance APIs as well as additional APIs for Node.js-specific performance measurements.

N
constants
No documentation available
v
constants.NODE_PERFORMANCE_GC_FLAGS_FORCED
No documentation available
v
constants.NODE_PERFORMANCE_GC_FLAGS_NO
No documentation available
v
constants.NODE_PERFORMANCE_GC_INCREMENTAL
No documentation available
v
constants.NODE_PERFORMANCE_GC_MAJOR
No documentation available
v
constants.NODE_PERFORMANCE_GC_MINOR
No documentation available
v
constants.NODE_PERFORMANCE_GC_WEAKCB
No documentation available
f
createHistogram

Returns a RecordableHistogram.

I
CreateHistogramOptions
No documentation available
T
EntryType
No documentation available
I
EventLoopMonitorOptions
No documentation available
T
EventLoopUtilityFunction
No documentation available
I
EventLoopUtilization
No documentation available
I
IntervalHistogram
No documentation available
I
MarkOptions
No documentation available
I
MeasureOptions
No documentation available
f
monitorEventLoopDelay
No documentation available
I
NodeGCPerformanceDetail
No documentation available
v
performance
No documentation available
c
v
PerformanceEntry

The constructor of this class is not exposed to users directly.

c
v
PerformanceMark

Exposes marks created via the Performance.mark() method.

c
v
PerformanceMeasure

Exposes measures created via the Performance.measure() method.

c
PerformanceNodeTiming

This property is an extension by Node.js. It is not available in Web browsers.

c
v
PerformanceObserver
No documentation available
T
PerformanceObserverCallback
No documentation available
I
RecordableHistogram
No documentation available
I
TimerifyOptions
No documentation available
T
Architecture
No documentation available
T
BeforeExitListener
No documentation available
I
CpuUsage
No documentation available
T
DisconnectListener
No documentation available
I
EmitWarningOptions
No documentation available
T
ExitListener
No documentation available
I
HRTime
No documentation available
I
MemoryUsageFn
No documentation available
T
MessageListener
No documentation available
T
MultipleResolveListener
No documentation available
T
MultipleResolveType
No documentation available
T
Platform
No documentation available
v
process
No documentation available
I
ProcessConfig
No documentation available
I
ProcessEnv
No documentation available
I
ProcessPermission
No documentation available
I
ReadStream
No documentation available
T
RejectionHandledListener
No documentation available
T
Signals
No documentation available
T
SignalsListener
No documentation available
I
Socket
No documentation available
T
UncaughtExceptionListener
No documentation available
T
UncaughtExceptionOrigin
No documentation available
T
UnhandledRejectionListener

Most of the time the unhandledRejection will be an Error, but this should not be relied upon as anything can be thrown/rejected, it is therefore unsafe to assume that the value is an Error.

T
WarningListener
No documentation available
T
WorkerListener
No documentation available
I
WriteStream
No documentation available

punycode

**The version of the punycode module bundled in Node.js is being deprecated. **In a future major version of Node.js this module will be removed. Users currently depending on the punycode module should switch to using the userland-provided Punycode.js module instead. For punycode-based URL encoding, see url.domainToASCII or, more generally, the WHATWG URL API.

f
decode

The punycode.decode() method converts a Punycode string of ASCII-only characters to the equivalent string of Unicode codepoints.

f
encode

The punycode.encode() method converts a string of Unicode codepoints to a Punycode string of ASCII-only characters.

f
toASCII

The punycode.toASCII() method converts a Unicode string representing an Internationalized Domain Name to Punycode. Only the non-ASCII parts of the domain name will be converted. Calling punycode.toASCII() on a string that already only contains ASCII characters will have no effect.

f
toUnicode

The punycode.toUnicode() method converts a string representing a domain name containing Punycode encoded characters into Unicode. Only the Punycode encoded parts of the domain name are be converted.

I
v
ucs2
No documentation available
v
version
No documentation available

querystring

The node:querystring module provides utilities for parsing and formatting URL query strings. It can be accessed using:

v
decode

The querystring.decode() function is an alias for querystring.parse().

v
encode

The querystring.encode() function is an alias for querystring.stringify().

f
escape

The querystring.escape() method performs URL percent-encoding on the given str in a manner that is optimized for the specific requirements of URL query strings.

f
parse

The querystring.parse() method parses a URL query string (str) into a collection of key and value pairs.

I
ParsedUrlQuery
No documentation available
I
ParsedUrlQueryInput
No documentation available
I
ParseOptions
No documentation available
f
stringify

The querystring.stringify() method produces a URL query string from a given obj by iterating through the object's "own properties".

I
StringifyOptions

The node:querystring module provides utilities for parsing and formatting URL query strings. It can be accessed using:

f
unescape

The querystring.unescape() method performs decoding of URL percent-encoded characters on the given str.

readline

The node:readline module provides an interface for reading data from a Readable stream (such as process.stdin) one line at a time.

T
AsyncCompleter
No documentation available
f
clearLine

The readline.clearLine() method clears current line of given TTY stream in a specified direction identified by dir.

f
clearScreenDown

The readline.clearScreenDown() method clears the given TTY stream from the current position of the cursor down.

T
Completer
No documentation available
T
CompleterResult
No documentation available
f
createInterface

The readline.createInterface() method creates a new readline.Interface instance.

I
CursorPos
No documentation available
f
cursorTo

The readline.cursorTo() method moves cursor to the specified position in a given TTY stream.

T
Direction
No documentation available
f
emitKeypressEvents

The readline.emitKeypressEvents() method causes the given Readable stream to begin emitting 'keypress' events corresponding to received input.

c
Interface

Instances of the readline.Interface class are constructed using the readline.createInterface() method. Every instance is associated with a single input Readable stream and a single output Writable stream. The output stream is used to print prompts for user input that arrives on, and is read from, the input stream.

I
Key
No documentation available
f
moveCursor

The readline.moveCursor() method moves the cursor relative to its current position in a given TTY stream.

N
promises
No documentation available
f
promises.createInterface

The readlinePromises.createInterface() method creates a new readlinePromises.Interface instance.

c
promises.Interface

Instances of the readlinePromises.Interface class are constructed using the readlinePromises.createInterface() method. Every instance is associated with a single input Readable stream and a single output Writable stream. The output stream is used to print prompts for user input that arrives on, and is read from, the input stream.

T
ReadLine
No documentation available
f
createInterface

The readlinePromises.createInterface() method creates a new readlinePromises.Interface instance.

c
Interface

Instances of the readlinePromises.Interface class are constructed using the readlinePromises.createInterface() method. Every instance is associated with a single input Readable stream and a single output Writable stream. The output stream is used to print prompts for user input that arrives on, and is read from, the input stream.

c
Recoverable
No documentation available
v
REPL_MODE_SLOPPY

A flag passed in the REPL options. Evaluates expressions in sloppy mode.

v
REPL_MODE_STRICT

A flag passed in the REPL options. Evaluates expressions in strict mode. This is equivalent to prefacing every repl statement with 'use strict'.

I
REPLCommand
No documentation available
T
REPLCommandAction
No documentation available
T
REPLEval
No documentation available
T
REPLWriter
No documentation available
f
start
No documentation available
v
writer

This is the default "writer" value, if none is passed in the REPL options, and it can be overridden by custom print functions.

T
AssetKey
No documentation available
f
getAsset
No documentation available
f
getAssetAsBlob
No documentation available
f
getRawAsset
No documentation available
f
isSea
No documentation available
c
DatabaseSync
No documentation available
I
DatabaseSyncOptions
No documentation available
T
SupportedValueType
No documentation available

stream

A stream is an abstract interface for working with streaming data in Node.js. The node:stream module provides an API for implementing the stream interface.

I
ArrayOptions
No documentation available
T
ComposeFnParam
No documentation available
c
N
default
No documentation available
f
default.addAbortSignal

A stream to attach a signal to.

v
default.consumers
No documentation available
f
default.duplexPair

The utility function duplexPair returns an Array with two items, each being a Duplex stream connected to the other side:

f
N
default.finished

A readable and/or writable stream/webstream.

f
default.finished.__promisify__
No documentation available
I
f
default.getDefaultHighWaterMark

Returns the default highWaterMark used by streams. Defaults to 65536 (64 KiB), or 16 for objectMode.

f
default.isErrored

Returns whether the stream has encountered an error.

f
default.isReadable

Returns whether the stream is readable.

c
default.PassThrough

The stream.PassThrough class is a trivial implementation of a Transform stream that simply passes the input bytes across to the output. Its purpose is primarily for examples and testing, but there are some use cases where stream.PassThrough is useful as a building block for novel sorts of streams.

I
default.Pipe
No documentation available
f
N
default.pipeline

A module method to pipe between streams and generators forwarding errors and properly cleaning up and provide a callback when the pipeline is complete.

f
default.pipeline.__promisify__
No documentation available
T
default.PipelineCallback
No documentation available
T
default.PipelineDestination
No documentation available
T
T
default.PipelineDestinationPromiseFunction
No documentation available
I
default.PipelineOptions
No documentation available
T
default.PipelinePromise
No documentation available
T
default.PipelineSource
No documentation available
T
default.PipelineSourceFunction
No documentation available
T
default.PipelineTransform
No documentation available
T
default.PipelineTransformSource
No documentation available
v
default.promises
No documentation available
c
default.Readable
No documentation available
I
default.ReadableOptions
No documentation available
f
default.setDefaultHighWaterMark

Sets the default highWaterMark used by streams.

c
default.Stream
No documentation available
c
default.Transform

Transform streams are Duplex streams where the output is in some way related to the input. Like all Duplex streams, Transform streams implement both the Readable and Writable interfaces.

T
default.TransformCallback
No documentation available
c
default.Writable
No documentation available
c
N
internal
No documentation available
f
internal.addAbortSignal

A stream to attach a signal to.

v
internal.consumers
No documentation available
f
internal.duplexPair

The utility function duplexPair returns an Array with two items, each being a Duplex stream connected to the other side:

f
N
internal.finished

A readable and/or writable stream/webstream.

f
internal.finished.__promisify__
No documentation available
I
f
internal.getDefaultHighWaterMark

Returns the default highWaterMark used by streams. Defaults to 65536 (64 KiB), or 16 for objectMode.

f
internal.isErrored

Returns whether the stream has encountered an error.

f
internal.isReadable

Returns whether the stream is readable.

c
internal.PassThrough

The stream.PassThrough class is a trivial implementation of a Transform stream that simply passes the input bytes across to the output. Its purpose is primarily for examples and testing, but there are some use cases where stream.PassThrough is useful as a building block for novel sorts of streams.

I
internal.Pipe
No documentation available
f
N
internal.pipeline

A module method to pipe between streams and generators forwarding errors and properly cleaning up and provide a callback when the pipeline is complete.

f
internal.pipeline.__promisify__
No documentation available
T
internal.PipelineCallback
No documentation available
T
internal.PipelineDestination
No documentation available
T
T
I
internal.PipelineOptions
No documentation available
T
internal.PipelinePromise
No documentation available
T
internal.PipelineSource
No documentation available
T
internal.PipelineSourceFunction
No documentation available
T
internal.PipelineTransform
No documentation available
T
internal.PipelineTransformSource
No documentation available
v
internal.promises
No documentation available
c
internal.Readable
No documentation available
I
internal.ReadableOptions
No documentation available
f
internal.setDefaultHighWaterMark

Sets the default highWaterMark used by streams.

c
internal.Stream
No documentation available
c
internal.Transform

Transform streams are Duplex streams where the output is in some way related to the input. Like all Duplex streams, Transform streams implement both the Readable and Writable interfaces.

T
internal.TransformCallback
No documentation available
c
internal.Writable
No documentation available
f
arrayBuffer
No documentation available
f
blob
No documentation available
f
buffer
No documentation available
f
json
No documentation available
f
text
No documentation available
f
finished
No documentation available
f
pipeline
No documentation available
T
BufferSource
No documentation available
I
v
ByteLengthQueuingStrategy

This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams.

I
v
CompressionStream
No documentation available
I
v
CountQueuingStrategy

This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams.

I
v
I
QueuingStrategy
No documentation available
I
QueuingStrategyInit
No documentation available
I
QueuingStrategySize
No documentation available
I
ReadableByteStreamControllerCallback
No documentation available
I
v
ReadableStream

This Streams API interface represents a readable stream of byte data.

T
ReadableStreamController
No documentation available
I
ReadableStreamErrorCallback
No documentation available
I
ReadableStreamGenericReader
No documentation available
I
ReadableStreamGetReaderOptions
No documentation available
I
ReadableStreamReadDoneResult
No documentation available
T
ReadableStreamReader
No documentation available
T
ReadableStreamReaderMode
No documentation available
T
ReadableStreamReadResult
No documentation available
I
ReadableStreamReadValueResult
No documentation available
I
ReadableWritablePair
No documentation available
I
TextDecoderOptions
No documentation available
I
TransformerFlushCallback
No documentation available
I
TransformerStartCallback
No documentation available
I
TransformerTransformCallback
No documentation available
I
v
TransformStream
No documentation available
I
UnderlyingSink
No documentation available
I
UnderlyingSinkAbortCallback
No documentation available
I
UnderlyingSinkCloseCallback
No documentation available
I
UnderlyingSinkStartCallback
No documentation available
I
UnderlyingSinkWriteCallback
No documentation available
I
UnderlyingSource
No documentation available
I
UnderlyingSourceCancelCallback
No documentation available
I
UnderlyingSourcePullCallback
No documentation available
I
UnderlyingSourceStartCallback
No documentation available
I
v
WritableStream

This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in back pressure and queuing.

I
v
WritableStreamDefaultController

This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.

I
v
WritableStreamDefaultWriter

This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.

string_decoder

The node:string_decoder module provides an API for decoding Buffer objects into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16 characters. It can be accessed using:

c
StringDecoder

The node:string_decoder module provides an API for decoding Buffer objects into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16 characters. It can be accessed using:

test/reporters

The node:test/reporters module exposes the builtin-reporters for node:test. To access it:

f
dot

The dot reporter outputs the test results in a compact format, where each passing test is represented by a ., and each failing test is represented by a X.

f
junit

The junit reporter outputs test results in a jUnit XML format.

v
lcov

The lcov reporter outputs test coverage when used with the --experimental-test-coverage flag.

c
LcovReporter
No documentation available
I
ReporterConstructorWrapper
No documentation available
v
spec

The spec reporter outputs the test results in a human-readable format.

c
SpecReporter
No documentation available
f
tap

The tap reporter outputs the test results in the TAP format.

T
TestEvent
No documentation available
T
TestEventGenerator
No documentation available

timers

The timer module exposes a global API for scheduling functions to be called at some future period of time. Because the timer functions are globals, there is no need to import node:timers to use the API.

f
v
clearImmediate

Cancels an Immediate object created by setImmediate().

f
v
clearInterval

Cancels a Timeout object created by setInterval().

f
v
clearTimeout

Cancels a Timeout object created by setTimeout().

c
Immediate

This object is created internally and is returned from setImmediate(). It can be passed to clearImmediate() in order to cancel the scheduled actions.

f
queueMicrotask
No documentation available
f
N
v
setImmediate

Schedules the "immediate" execution of the callback after I/O events' callbacks.

v
setImmediate.__promisify__
No documentation available
f
N
v
setInterval

Schedules repeated execution of callback every delay milliseconds.

v
setInterval.__promisify__
No documentation available
f
N
v
setTimeout

Schedules execution of a one-time callback after delay milliseconds.

v
setTimeout.__promisify__
No documentation available
c
Timeout

This object is created internally and is returned from setTimeout() and setInterval(). It can be passed to either clearTimeout() or clearInterval() in order to cancel the scheduled actions.

I
Timer
No documentation available
I
TimerOptions
No documentation available

timers/promises

The timers/promises API provides an alternative set of timer functions that return Promise objects. The API is accessible via import timersPromises from 'node:timers/promises'.

I
Scheduler
No documentation available
v
scheduler
No documentation available
f
setImmediate
No documentation available
f
setInterval

Returns an async iterator that generates values in an interval of delay ms. If ref is true, you need to call next() of async iterator explicitly or implicitly to keep the event loop alive.

f
setTimeout
No documentation available

tls

The node:tls module provides an implementation of the Transport Layer Security (TLS) and Secure Socket Layer (SSL) protocols that is built on top of OpenSSL. The module can be accessed using:

I
Certificate
No documentation available
f
checkServerIdentity

Verifies the certificate cert is issued to hostname.

I
v
CLIENT_RENEG_LIMIT
No documentation available
v
CLIENT_RENEG_WINDOW
No documentation available
f
connect

The callback function, if specified, will be added as a listener for the 'secureConnect' event.

f
createSecureContext

[createServer](././tls/~/createServer) sets the default value of the honorCipherOrder option to true, other APIs that create secure contexts leave it unset.

f
createServer

Creates a new Server. The secureConnectionListener, if provided, is automatically set as a listener for the 'secureConnection' event.

v
DEFAULT_CIPHERS

The default value of the ciphers option of createSecureContext(). It can be assigned any of the supported OpenSSL ciphers. Defaults to the content of crypto.constants.defaultCoreCipherList, unless changed using CLI options using --tls-default-ciphers.

v
DEFAULT_ECDH_CURVE

The default curve name to use for ECDH key agreement in a tls server. The default value is 'auto'. See createSecureContext() for further information.

v
DEFAULT_MAX_VERSION

The default value of the maxVersion option of createSecureContext(). It can be assigned any of the supported TLS protocol versions, 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default: 'TLSv1.3', unless changed using CLI options. Using --tls-max-v1.2 sets the default to 'TLSv1.2'. Using --tls-max-v1.3 sets the default to 'TLSv1.3'. If multiple of the options are provided, the highest maximum is used.

v
DEFAULT_MIN_VERSION

The default value of the minVersion option of createSecureContext(). It can be assigned any of the supported TLS protocol versions, 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default: 'TLSv1.2', unless changed using CLI options. Using --tls-min-v1.0 sets the default to 'TLSv1'. Using --tls-min-v1.1 sets the default to 'TLSv1.1'. Using --tls-min-v1.3 sets the default to 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used.

I
DetailedPeerCertificate
No documentation available
I
EphemeralKeyInfo
No documentation available
f
getCiphers

Returns an array with the names of the supported TLS ciphers. The names are lower-case for historical reasons, but must be uppercased to be used in the ciphers option of [createSecureContext](././tls/~/createSecureContext).

I
KeyObject
No documentation available
I
PSKCallbackNegotation
No documentation available
I
PxfObject
No documentation available
v
rootCertificates

An immutable array of strings representing the root certificates (in PEM format) from the bundled Mozilla CA store as supplied by the current Node.js version.

I
SecureContext
No documentation available
T
SecureVersion
No documentation available
f
createSecurePair
No documentation available
I
SecurePair
No documentation available
f
createTracing
No documentation available
I
CreateTracingOptions
No documentation available
f
getEnabledCategories
No documentation available
I
Tracing
No documentation available

tty

The node:tty module provides the tty.ReadStream and tty.WriteStream classes. In most cases, it will not be necessary or possible to use this module directly. However, it can be accessed using:

T
Direction

-1 - to the left from cursor 0 - the entire line 1 - to the right from cursor

f
isatty

The tty.isatty() method returns true if the given fd is associated with a TTY and false if it is not, including whenever fd is not a non-negative integer.

c
ReadStream

Represents the readable side of a TTY. In normal circumstances process.stdin will be the only tty.ReadStream instance in a Node.js process and there should be no reason to create additional instances.

c
WriteStream

Represents the writable side of a TTY. In normal circumstances, process.stdout and process.stderr will be the onlytty.WriteStream instances created for a Node.js process and there should be no reason to create additional instances.

url

The node:url module provides utilities for URL resolution and parsing. It can be accessed using:

f
domainToASCII

Returns the Punycode ASCII serialization of the domain. If domain is an invalid domain, the empty string is returned.

f
domainToUnicode

Returns the Unicode serialization of the domain. If domain is an invalid domain, the empty string is returned.

f
fileURLToPath

This function ensures the correct decodings of percent-encoded characters as well as ensuring a cross-platform valid absolute path string.

I
FileUrlToPathOptions
No documentation available
f
format

The url.format() method returns a formatted URL string derived from urlObject.

I
Global
No documentation available
f
parse
No documentation available
f
pathToFileURL

This function ensures that path is resolved absolutely, and that the URL control characters are correctly encoded when converting into a File URL.

I
PathToFileUrlOptions
No documentation available
f
resolve

The url.resolve() method resolves a target URL relative to a base URL in a manner similar to that of a web browser resolving an anchor tag.

c
I
v
URL

Browser-compatible URL class, implemented by following the WHATWG URL Standard. Examples of parsed URLs may be found in the Standard itself. The URL class is also available on the global object.

I
URLFormatOptions
No documentation available
c
I
v
URLSearchParams

The URLSearchParams API provides read and write access to the query of a URL. The URLSearchParams class can also be used standalone with one of the four following constructors. The URLSearchParams class is also available on the global object.

f
urlToHttpOptions

This utility function converts a URL object into an ordinary options object as expected by the http.request() and https.request() APIs.

I
UrlWithParsedQuery
No documentation available
I
UrlWithStringQuery
No documentation available

util

The node:util module supports the needs of Node.js internal APIs. Many of the utilities are useful for application and module developers as well. To access it:

f
aborted

Listens to abort event on the provided signal and returns a promise that is fulfilled when the signal is aborted. If the passed resource is garbage collected before the signal is aborted, the returned promise shall remain pending indefinitely.

T
BackgroundColors
No documentation available
f
callbackify

Takes an async function (or a function that returns a Promise) and returns a function following the error-first callback style, i.e. taking an (err, value) => ... callback as the last argument. In the callback, the first argument will be the rejection reason (or null if the Promise resolved), and the second argument will be the resolved value.

T
CustomInspectFunction
No documentation available
T
CustomPromisify
No documentation available
I
CustomPromisifyLegacy
No documentation available
I
CustomPromisifySymbol
No documentation available
v
debug
No documentation available
f
debuglog

The util.debuglog() method is used to create a function that conditionally writes debug messages to stderr based on the existence of the NODE_DEBUGenvironment variable. If the section name appears within the value of that environment variable, then the returned function operates similar to console.error(). If not, then the returned function is a no-op.

I
DebugLogger
No documentation available
T
DebugLoggerFunction
No documentation available
f
deprecate

The util.deprecate() method wraps fn (which may be a function or class) in such a way that it is marked as deprecated.

I
EncodeIntoResult
No documentation available
T
ExtractOptionValue
No documentation available
T
ForegroundColors
No documentation available
f
format

The util.format() method returns a formatted string using the first argument as a printf-like format string which can contain zero or more format specifiers. Each specifier is replaced with the converted value from the corresponding argument. Supported specifiers are:

f
formatWithOptions

This function is identical to format, except in that it takes an inspectOptions argument which specifies options that are passed along to inspect.

f
getSystemErrorMap
No documentation available
f
getSystemErrorName

Returns the string name for a numeric error code that comes from a Node.js API. The mapping between error codes and error names is platform-dependent. See Common System Errors for the names of common errors.

T
IfDefaultsFalse
No documentation available
T
IfDefaultsTrue
No documentation available
f
inherits

Usage of util.inherits() is discouraged. Please use the ES6 class and extends keywords to get language level inheritance support. Also note that the two styles are semantically incompatible.

f
N
inspect

The util.inspect() method returns a string representation of object that is intended for debugging. The output of util.inspect may change at any time and should not be depended upon programmatically. Additional options may be passed that alter the result. util.inspect() will use the constructor's name and/or @@toStringTag to make an identifiable tag for an inspected value.

v
inspect.colors
No documentation available
v
inspect.custom

That can be used to declare custom inspect functions.

v
inspect.defaultOptions
No documentation available
v
inspect.replDefaults

Allows changing inspect settings from the repl.

v
inspect.styles
No documentation available
I
InspectOptionsStylized
No documentation available
f
isDeepStrictEqual

Returns true if there is deep strict equality between val1 and val2. Otherwise, returns false.

c
MIMEParams
No documentation available
c
MIMEType
No documentation available
T
Modifiers
No documentation available
T
OptionToken
No documentation available
f
parseArgs

Provides a higher level API for command-line argument parsing than interacting with process.argv directly. Takes a specification for the expected arguments and returns a structured object with the parsed options and positionals.

I
I
ParseArgsOptionsConfig
No documentation available
T
ParsedOptionToken
No documentation available
T
ParsedPositionals
No documentation available
T
ParsedPositionalToken
No documentation available
T
ParsedResults
No documentation available
T
ParsedTokens
No documentation available
T
ParsedValues
No documentation available
f
parseEnv

Stability: 1.1 - Active development Given an example .env file:

T
PreciseParsedResults
No documentation available
T
PreciseTokenForOptions
No documentation available
f
N
promisify

Takes a function following the common error-first callback style, i.e. taking an (err, value) => ... callback as the last argument, and returns a version that returns promises.

v
promisify.custom

That can be used to declare custom promisified variants of functions.

f
stripVTControlCharacters

Returns str with any ANSI escape codes removed.

T
Style
No documentation available
f
styleText

Stability: 1.1 - Active development

c
v
TextDecoder

An implementation of the WHATWG Encoding Standard TextDecoder API.

c
v
TextEncoder

An implementation of the WHATWG Encoding Standard TextEncoder API. All instances of TextEncoder only support UTF-8 encoding.

T
Token
No documentation available
T
TokenForOptions
No documentation available
f
toUSVString

Returns the string after replacing any surrogate code points (or equivalently, any unpaired surrogate code units) with the Unicode "replacement character" U+FFFD.

f
transferableAbortController
No documentation available
f
transferableAbortSignal
No documentation available
N
types
No documentation available
f
types.isAnyArrayBuffer

Returns true if the value is a built-in ArrayBuffer or SharedArrayBuffer instance.

f
types.isArgumentsObject

Returns true if the value is an arguments object.

f
types.isArrayBuffer

Returns true if the value is a built-in ArrayBuffer instance. This does not include SharedArrayBuffer instances. Usually, it is desirable to test for both; See util.types.isAnyArrayBuffer() for that.

f
types.isArrayBufferView

Returns true if the value is an instance of one of the ArrayBuffer views, such as typed array objects or DataView. Equivalent to ArrayBuffer.isView().

f
types.isAsyncFunction

Returns true if the value is an async function. This only reports back what the JavaScript engine is seeing; in particular, the return value may not match the original source code if a transpilation tool was used.

f
types.isBigInt64Array

Returns true if the value is a BigInt64Array instance.

f
types.isBigUint64Array

Returns true if the value is a BigUint64Array instance.

f
types.isBooleanObject

Returns true if the value is a boolean object, e.g. created by new Boolean().

f
types.isBoxedPrimitive

Returns true if the value is any boxed primitive object, e.g. created by new Boolean(), new String() or Object(Symbol()).

f
types.isCryptoKey

Returns true if value is a CryptoKey, false otherwise.

f
types.isDataView

Returns true if the value is a built-in DataView instance.

f
types.isDate

Returns true if the value is a built-in Date instance.

f
types.isExternal

Returns true if the value is a native External value.

f
types.isFloat32Array

Returns true if the value is a built-in Float32Array instance.

f
types.isFloat64Array

Returns true if the value is a built-in Float64Array instance.

f
types.isGeneratorFunction

Returns true if the value is a generator function. This only reports back what the JavaScript engine is seeing; in particular, the return value may not match the original source code if a transpilation tool was used.

f
types.isGeneratorObject

Returns true if the value is a generator object as returned from a built-in generator function. This only reports back what the JavaScript engine is seeing; in particular, the return value may not match the original source code if a transpilation tool was used.

f
types.isInt16Array

Returns true if the value is a built-in Int16Array instance.

f
types.isInt32Array

Returns true if the value is a built-in Int32Array instance.

f
types.isInt8Array

Returns true if the value is a built-in Int8Array instance.

f
types.isKeyObject

Returns true if value is a KeyObject, false otherwise.

f
types.isMap

Returns true if the value is a built-in Map instance.

f
types.isMapIterator

Returns true if the value is an iterator returned for a built-in Map instance.

f
types.isModuleNamespaceObject

Returns true if the value is an instance of a Module Namespace Object.

f
types.isNativeError

Returns true if the value was returned by the constructor of a built-in Error type.

f
types.isNumberObject

Returns true if the value is a number object, e.g. created by new Number().

f
types.isPromise

Returns true if the value is a built-in Promise.

f
types.isProxy

Returns true if the value is a Proxy instance.

f
types.isRegExp

Returns true if the value is a regular expression object.

f
types.isSet

Returns true if the value is a built-in Set instance.

f
types.isSetIterator

Returns true if the value is an iterator returned for a built-in Set instance.

f
types.isSharedArrayBuffer

Returns true if the value is a built-in SharedArrayBuffer instance. This does not include ArrayBuffer instances. Usually, it is desirable to test for both; See util.types.isAnyArrayBuffer() for that.

f
types.isStringObject

Returns true if the value is a string object, e.g. created by new String().

f
types.isSymbolObject

Returns true if the value is a symbol object, created by calling Object() on a Symbol primitive.

f
types.isTypedArray

Returns true if the value is a built-in TypedArray instance.

f
types.isUint16Array

Returns true if the value is a built-in Uint16Array instance.

f
types.isUint32Array

Returns true if the value is a built-in Uint32Array instance.

f
types.isUint8Array

Returns true if the value is a built-in Uint8Array instance.

f
types.isUint8ClampedArray

Returns true if the value is a built-in Uint8ClampedArray instance.

f
types.isWeakMap

Returns true if the value is a built-in WeakMap instance.

f
types.isWeakSet

Returns true if the value is a built-in WeakSet instance.

f
f
isBoolean

Returns true if the given object is a Boolean. Otherwise, returns false.

f
isBuffer

Returns true if the given object is a Buffer. Otherwise, returns false.

f
isDate

Returns true if the given object is a Date. Otherwise, returns false.

f
isError

Returns true if the given object is an Error. Otherwise, returns false.

f
isFunction

Returns true if the given object is a Function. Otherwise, returns false.

f
isNull

Returns true if the given object is strictly null. Otherwise, returnsfalse.

f
isNullOrUndefined

Returns true if the given object is null or undefined. Otherwise, returns false.

f
isNumber

Returns true if the given object is a Number. Otherwise, returns false.

f
isObject

Returns true if the given object is strictly an Objectand not aFunction (even though functions are objects in JavaScript). Otherwise, returns false.

f
isPrimitive

Returns true if the given object is a primitive type. Otherwise, returnsfalse.

f
isRegExp

Returns true if the given object is a RegExp. Otherwise, returns false.

f
isString

Returns true if the given object is a string. Otherwise, returns false.

f
isSymbol

Returns true if the given object is a Symbol. Otherwise, returns false.

f
isUndefined

Returns true if the given object is undefined. Otherwise, returns false.

f
log

The util.log() method prints the given string to stdout with an included timestamp.

f
isAnyArrayBuffer

Returns true if the value is a built-in ArrayBuffer or SharedArrayBuffer instance.

f
isArgumentsObject

Returns true if the value is an arguments object.

f
isArrayBuffer

Returns true if the value is a built-in ArrayBuffer instance. This does not include SharedArrayBuffer instances. Usually, it is desirable to test for both; See util.types.isAnyArrayBuffer() for that.

f
isArrayBufferView

Returns true if the value is an instance of one of the ArrayBuffer views, such as typed array objects or DataView. Equivalent to ArrayBuffer.isView().

f
isAsyncFunction

Returns true if the value is an async function. This only reports back what the JavaScript engine is seeing; in particular, the return value may not match the original source code if a transpilation tool was used.

f
isBigInt64Array

Returns true if the value is a BigInt64Array instance.

f
isBigUint64Array

Returns true if the value is a BigUint64Array instance.

f
isBooleanObject

Returns true if the value is a boolean object, e.g. created by new Boolean().

f
isBoxedPrimitive

Returns true if the value is any boxed primitive object, e.g. created by new Boolean(), new String() or Object(Symbol()).

f
isCryptoKey

Returns true if value is a CryptoKey, false otherwise.

f
isDataView

Returns true if the value is a built-in DataView instance.

f
isDate

Returns true if the value is a built-in Date instance.

f
isExternal

Returns true if the value is a native External value.

f
isFloat32Array

Returns true if the value is a built-in Float32Array instance.

f
isFloat64Array

Returns true if the value is a built-in Float64Array instance.

f
isGeneratorFunction

Returns true if the value is a generator function. This only reports back what the JavaScript engine is seeing; in particular, the return value may not match the original source code if a transpilation tool was used.

f
isGeneratorObject

Returns true if the value is a generator object as returned from a built-in generator function. This only reports back what the JavaScript engine is seeing; in particular, the return value may not match the original source code if a transpilation tool was used.

f
isInt16Array

Returns true if the value is a built-in Int16Array instance.

f
isInt32Array

Returns true if the value is a built-in Int32Array instance.

f
isInt8Array

Returns true if the value is a built-in Int8Array instance.

f
isKeyObject

Returns true if value is a KeyObject, false otherwise.

f
isMap

Returns true if the value is a built-in Map instance.

f
isMapIterator

Returns true if the value is an iterator returned for a built-in Map instance.

f
isModuleNamespaceObject

Returns true if the value is an instance of a Module Namespace Object.

f
isNativeError

Returns true if the value was returned by the constructor of a built-in Error type.

f
isNumberObject

Returns true if the value is a number object, e.g. created by new Number().

f
isPromise

Returns true if the value is a built-in Promise.

f
isProxy

Returns true if the value is a Proxy instance.

f
isRegExp

Returns true if the value is a regular expression object.

f
isSet

Returns true if the value is a built-in Set instance.

f
isSetIterator

Returns true if the value is an iterator returned for a built-in Set instance.

f
isSharedArrayBuffer

Returns true if the value is a built-in SharedArrayBuffer instance. This does not include ArrayBuffer instances. Usually, it is desirable to test for both; See util.types.isAnyArrayBuffer() for that.

f
isStringObject

Returns true if the value is a string object, e.g. created by new String().

f
isSymbolObject

Returns true if the value is a symbol object, created by calling Object() on a Symbol primitive.

f
isTypedArray

Returns true if the value is a built-in TypedArray instance.

f
isUint16Array

Returns true if the value is a built-in Uint16Array instance.

f
isUint32Array

Returns true if the value is a built-in Uint32Array instance.

f
isUint8Array

Returns true if the value is a built-in Uint8Array instance.

f
isUint8ClampedArray

Returns true if the value is a built-in Uint8ClampedArray instance.

f
isWeakMap

Returns true if the value is a built-in WeakMap instance.

f
isWeakSet

Returns true if the value is a built-in WeakSet instance.

I
After

Called immediately after a promise continuation executes. This may be after a then(), catch(), or finally() handler or before an await after another await.

I
Before

Called before a promise continuation executes. This can be in the form of then(), catch(), or finally() handlers or an await resuming.

f
cachedDataVersionTag

Returns an integer representing a version tag derived from the V8 version, command-line flags, and detected CPU features. This is useful for determining whether a vm.Script cachedData buffer is compatible with this instance of V8.

c
DefaultDeserializer

A subclass of Deserializer corresponding to the format written by DefaultSerializer.

c
DefaultSerializer

A subclass of Serializer that serializes TypedArray(in particular Buffer) and DataView objects as host objects, and only stores the part of their underlying ArrayBuffers that they are referring to.

f
deserialize

Uses a DefaultDeserializer with default options to read a JS value from a buffer.

T
DoesZapCodeSpaceFlag
No documentation available
c
GCProfiler

This API collects GC data in current thread.

f
getHeapCodeStatistics

Get statistics about code and its metadata in the heap, see V8 GetHeapCodeAndMetadataStatistics API. Returns an object with the following properties:

f
getHeapSnapshot

Generates a snapshot of the current V8 heap and returns a Readable Stream that may be used to read the JSON serialized representation. This JSON stream format is intended to be used with tools such as Chrome DevTools. The JSON schema is undocumented and specific to the V8 engine. Therefore, the schema may change from one version of V8 to the next.

f
getHeapSpaceStatistics

Returns statistics about the V8 heap spaces, i.e. the segments which make up the V8 heap. Neither the ordering of heap spaces, nor the availability of a heap space can be guaranteed as the statistics are provided via the V8 GetHeapSpaceStatistics function and may change from one V8 version to the next.

f
getHeapStatistics

Returns an object with the following properties:

I
HookCallbacks

Key events in the lifetime of a promise have been categorized into four areas: creation of a promise, before/after a continuation handler is called or around an await, and when the promise resolves or rejects.

I
Init

Called when a promise is constructed. This does not mean that corresponding before/after events will occur, only that the possibility exists. This will happen if a promise is created without ever getting a continuation.

v
promiseHooks

The promiseHooks interface can be used to track promise lifecycle events.

f
queryObjects

This is similar to the queryObjects() console API provided by the Chromium DevTools console. It can be used to search for objects that have the matching constructor on its prototype chain in the heap after a full garbage collection, which can be useful for memory leak regression tests. To avoid surprising results, users should avoid using this API on constructors whose implementation they don't control, or on constructors that can be invoked by other parties in the application.

f
serialize

Uses a DefaultSerializer to serialize value into a buffer.

f
setFlagsFromString

The v8.setFlagsFromString() method can be used to programmatically set V8 command-line flags. This method should be used with care. Changing settings after the VM has started may result in unpredictable behavior, including crashes and data loss; or it may simply do nothing.

f
setHeapSnapshotNearHeapLimit

The API is a no-op if --heapsnapshot-near-heap-limit is already set from the command line or the API is called more than once. limit must be a positive integer. See --heapsnapshot-near-heap-limit for more information.

I
Settled

Called when the promise receives a resolution or rejection value. This may occur synchronously in the case of Promise.resolve() or Promise.reject().

v
startupSnapshot

The v8.startupSnapshot interface can be used to add serialization and deserialization hooks for custom startup snapshots.

T
StartupSnapshotCallbackFn
No documentation available
f
stopCoverage

The v8.stopCoverage() method allows the user to stop the coverage collection started by NODE_V8_COVERAGE, so that V8 can release the execution count records and optimize code. This can be used in conjunction with takeCoverage if the user wants to collect the coverage on demand.

f
takeCoverage

The v8.takeCoverage() method allows the user to write the coverage started by NODE_V8_COVERAGE to disk on demand. This method can be invoked multiple times during the lifetime of the process. Each time the execution counter will be reset and a new coverage report will be written to the directory specified by NODE_V8_COVERAGE.

f
writeHeapSnapshot

Generates a snapshot of the current V8 heap and writes it to a JSON file. This file is intended to be used with tools such as Chrome DevTools. The JSON schema is undocumented and specific to the V8 engine, and may change from one version of V8 to the next.

vm

The node:vm module enables compiling and running code within V8 Virtual Machine contexts.

I
BaseOptions
No documentation available
f
compileFunction

Compiles the given code into the provided context (if no context is supplied, the current context is used), and returns it wrapped inside a function with the given params.

N
constants

Returns an object containing commonly used constants for VM operations.

v
constants.USE_MAIN_CONTEXT_DEFAULT_LOADER

Stability: 1.1 - Active development

I
Context
No documentation available
f
createContext
No documentation available
f
isContext

Returns true if the given object object has been contextified using createContext.

f
measureMemory
No documentation available
T
MeasureMemoryMode
No documentation available
I
MeasureMemoryOptions
No documentation available
I
MemoryMeasurement
No documentation available
c
Module

This feature is only available with the --experimental-vm-modules command flag enabled.

I
ModuleEvaluateOptions
No documentation available
T
ModuleLinker
No documentation available
T
ModuleStatus
No documentation available
f
runInContext

The vm.runInContext() method compiles code, runs it within the context of the contextifiedObject, then returns the result. Running code does not have access to the local scope. The contextifiedObject object must have been previously contextified using the createContext method.

f
runInNewContext

The vm.runInNewContext() first contextifies the given contextObject (or creates a new contextObject if passed as undefined), compiles the code, runs it within the created context, then returns the result. Running code does not have access to the local scope.

f
runInThisContext

vm.runInThisContext() compiles code, runs it within the context of the current global and returns the result. Running code does not have access to local scope, but does have access to the current global object.

c
SourceTextModule

This feature is only available with the --experimental-vm-modules command flag enabled.

c
SyntheticModule

This feature is only available with the --experimental-vm-modules command flag enabled.

I
SyntheticModuleOptions
No documentation available

worker_threads

The node:worker_threads module enables the use of threads that execute JavaScript in parallel. To access it:

c
I
v
BroadcastChannel

Instances of BroadcastChannel allow asynchronous one-to-many communication with all other BroadcastChannel instances bound to the same channel name.

f
getEnvironmentData

Within a worker thread, worker.getEnvironmentData() returns a clone of data passed to the spawning thread's worker.setEnvironmentData(). Every new Worker receives its own copy of the environment data automatically.

v
isMainThread
No documentation available
f
markAsUntransferable
No documentation available
c
v
MessageChannel

Instances of the worker.MessageChannel class represent an asynchronous, two-way communications channel. The MessageChannel has no methods of its own. new MessageChannel() yields an object with port1 and port2 properties, which refer to linked MessagePort instances.

c
v
MessagePort

Instances of the worker.MessagePort class represent one end of an asynchronous, two-way communications channel. It can be used to transfer structured data, memory regions and other MessagePorts between different Workers.

f
moveMessagePortToContext
No documentation available
v
parentPort
No documentation available
f
receiveMessageOnPort
No documentation available
v
resourceLimits
No documentation available
T
Serializable
No documentation available
f
setEnvironmentData

The worker.setEnvironmentData() API sets the content of worker.getEnvironmentData() in the current thread and all new Worker instances spawned from the current context.

v
SHARE_ENV
No documentation available
v
threadId
No documentation available
T
TransferListItem
No documentation available
v
workerData
No documentation available
I
WorkerPerformance
No documentation available

zlib

The node:zlib module provides compression functionality implemented using Gzip, Deflate/Inflate, and Brotli.

I
BrotliCompress
No documentation available
f
brotliCompress
No documentation available
f
brotliCompressSync

Compress a chunk of data with BrotliCompress.

I
BrotliDecompress
No documentation available
f
brotliDecompress
No documentation available
f
brotliDecompressSync

Decompress a chunk of data with BrotliDecompress.

T
CompressCallback
No documentation available
N
constants
No documentation available
v
constants.BROTLI_DECODE
No documentation available
v
constants.BROTLI_DECODER_ERROR_UNREACHABLE
No documentation available
v
constants.BROTLI_DECODER_NEEDS_MORE_INPUT
No documentation available
v
constants.BROTLI_DECODER_NEEDS_MORE_OUTPUT
No documentation available
v
constants.BROTLI_DECODER_NO_ERROR
No documentation available
v
v
constants.BROTLI_DECODER_RESULT_ERROR
No documentation available
v
constants.BROTLI_DECODER_RESULT_SUCCESS
No documentation available
v
constants.BROTLI_DECODER_SUCCESS
No documentation available
v
constants.BROTLI_DEFAULT_MODE
No documentation available
v
constants.BROTLI_DEFAULT_QUALITY
No documentation available
v
constants.BROTLI_DEFAULT_WINDOW
No documentation available
v
constants.BROTLI_ENCODE
No documentation available
v
constants.BROTLI_LARGE_MAX_WINDOW_BITS
No documentation available
v
constants.BROTLI_MAX_INPUT_BLOCK_BITS
No documentation available
v
constants.BROTLI_MAX_QUALITY
No documentation available
v
constants.BROTLI_MAX_WINDOW_BITS
No documentation available
v
constants.BROTLI_MIN_INPUT_BLOCK_BITS
No documentation available
v
constants.BROTLI_MIN_QUALITY
No documentation available
v
constants.BROTLI_MIN_WINDOW_BITS
No documentation available
v
constants.BROTLI_MODE_FONT
No documentation available
v
constants.BROTLI_MODE_GENERIC
No documentation available
v
constants.BROTLI_MODE_TEXT
No documentation available
v
constants.BROTLI_OPERATION_EMIT_METADATA
No documentation available
v
constants.BROTLI_OPERATION_FINISH
No documentation available
v
constants.BROTLI_OPERATION_FLUSH
No documentation available
v
constants.BROTLI_OPERATION_PROCESS
No documentation available
v
constants.BROTLI_PARAM_LARGE_WINDOW
No documentation available
v
constants.BROTLI_PARAM_LGBLOCK
No documentation available
v
constants.BROTLI_PARAM_LGWIN
No documentation available
v
constants.BROTLI_PARAM_MODE
No documentation available
v
constants.BROTLI_PARAM_NDIRECT
No documentation available
v
constants.BROTLI_PARAM_NPOSTFIX
No documentation available
v
constants.BROTLI_PARAM_QUALITY
No documentation available
v
constants.BROTLI_PARAM_SIZE_HINT
No documentation available
v
constants.DEFLATE
No documentation available
v
constants.DEFLATERAW
No documentation available
v
constants.GUNZIP
No documentation available
v
constants.GZIP
No documentation available
v
constants.INFLATE
No documentation available
v
constants.INFLATERAW
No documentation available
v
constants.UNZIP
No documentation available
v
constants.Z_BEST_COMPRESSION
No documentation available
v
constants.Z_BEST_SPEED
No documentation available
v
constants.Z_BLOCK
No documentation available
v
constants.Z_BUF_ERROR
No documentation available
v
constants.Z_DATA_ERROR
No documentation available
v
constants.Z_DEFAULT_CHUNK
No documentation available
v
constants.Z_DEFAULT_COMPRESSION
No documentation available
v
constants.Z_DEFAULT_LEVEL
No documentation available
v
constants.Z_DEFAULT_MEMLEVEL
No documentation available
v
constants.Z_DEFAULT_STRATEGY
No documentation available
v
constants.Z_DEFAULT_WINDOWBITS
No documentation available
v
constants.Z_ERRNO
No documentation available
v
constants.Z_FILTERED
No documentation available
v
constants.Z_FINISH
No documentation available
v
constants.Z_FIXED
No documentation available
v
constants.Z_FULL_FLUSH
No documentation available
v
constants.Z_HUFFMAN_ONLY
No documentation available
v
constants.Z_MAX_CHUNK
No documentation available
v
constants.Z_MAX_LEVEL
No documentation available
v
constants.Z_MAX_MEMLEVEL
No documentation available
v
constants.Z_MAX_WINDOWBITS
No documentation available
v
constants.Z_MEM_ERROR
No documentation available
v
constants.Z_MIN_CHUNK
No documentation available
v
constants.Z_MIN_LEVEL
No documentation available
v
constants.Z_MIN_MEMLEVEL
No documentation available
v
constants.Z_MIN_WINDOWBITS
No documentation available
v
constants.Z_NEED_DICT
No documentation available
v
constants.Z_NO_COMPRESSION
No documentation available
v
constants.Z_NO_FLUSH
No documentation available
v
constants.Z_OK
No documentation available
v
constants.Z_PARTIAL_FLUSH
No documentation available
v
constants.Z_RLE
No documentation available
v
constants.Z_STREAM_END
No documentation available
v
constants.Z_STREAM_ERROR
No documentation available
v
constants.Z_SYNC_FLUSH
No documentation available
v
constants.Z_TREES
No documentation available
v
constants.Z_VERSION_ERROR
No documentation available
v
constants.ZLIB_VERNUM
No documentation available
f
crc32

Computes a 32-bit Cyclic Redundancy Check checksum of data. If value is specified, it is used as the starting value of the checksum, otherwise, 0 is used as the starting value.

f
createBrotliCompress

Creates and returns a new BrotliCompress object.

f
createBrotliDecompress

Creates and returns a new BrotliDecompress object.

f
createDeflate

Creates and returns a new Deflate object.

f
createDeflateRaw

Creates and returns a new DeflateRaw object.

f
createGunzip

Creates and returns a new Gunzip object.

f
createGzip

Creates and returns a new Gzip object. See example.

f
createInflate

Creates and returns a new Inflate object.

f
createInflateRaw

Creates and returns a new InflateRaw object.

f
createUnzip

Creates and returns a new Unzip object.

I
Deflate
No documentation available
f
deflate
No documentation available
I
DeflateRaw
No documentation available
f
deflateRaw
No documentation available
f
deflateRawSync

Compress a chunk of data with DeflateRaw.

f
deflateSync

Compress a chunk of data with Deflate.

I
Gunzip
No documentation available
f
gunzip
No documentation available
f
gunzipSync

Decompress a chunk of data with Gunzip.

I
Gzip
No documentation available
f
gzip
No documentation available
f
gzipSync

Compress a chunk of data with Gzip.

I
Inflate
No documentation available
f
inflate
No documentation available
I
InflateRaw
No documentation available
f
inflateRaw
No documentation available
f
inflateRawSync

Decompress a chunk of data with InflateRaw.

f
inflateSync

Decompress a chunk of data with Inflate.

T
InputType
No documentation available
I
Unzip
No documentation available
f
unzip
No documentation available
f
unzipSync

Decompress a chunk of data with Unzip.

I
Zlib
No documentation available
I
ZlibParams
No documentation available
I
ZlibReset
No documentation available
v
Z_ASCII
No documentation available
v
Z_BEST_COMPRESSION
No documentation available
v
Z_BEST_SPEED
No documentation available
v
Z_BINARY
No documentation available
v
Z_BLOCK
No documentation available
v
Z_BUF_ERROR
No documentation available
v
Z_DATA_ERROR
No documentation available
v
Z_DEFAULT_COMPRESSION
No documentation available
v
Z_DEFAULT_STRATEGY
No documentation available
v
Z_DEFLATED
No documentation available
v
Z_ERRNO
No documentation available
v
Z_FILTERED
No documentation available
v
Z_FINISH
No documentation available
v
Z_FIXED
No documentation available
v
Z_FULL_FLUSH
No documentation available
v
Z_HUFFMAN_ONLY
No documentation available
v
Z_MEM_ERROR
No documentation available
v
Z_NEED_DICT
No documentation available
v
Z_NO_COMPRESSION
No documentation available
v
Z_NO_FLUSH
No documentation available
v
Z_OK
No documentation available
v
Z_PARTIAL_FLUSH
No documentation available
v
Z_RLE
No documentation available
v
Z_STREAM_END
No documentation available
v
Z_STREAM_ERROR
No documentation available
v
Z_SYNC_FLUSH
No documentation available
v
Z_TEXT
No documentation available
v
Z_TREES
No documentation available
v
Z_UNKNOWN
No documentation available
v
Z_VERSION_ERROR
No documentation available
Back to top