Skip to content

mkdtempSync

mkdtempSync(this, prefix, options?): NonSharedBuffer

Defined in: src/node/sync.ts:642

Synchronous mkdtemp. Creates a unique temporary directory.

unknown

Buffer

The directory prefix.

BufferEncodingOption | EncodingOption

The encoding (or an object including encoding).

NonSharedBuffer

The path to the created temporary directory, encoded as a string or buffer.

mkdtempSync(this, prefix, options): NonSharedBuffer

Defined in: src/node/sync.ts:643

Synchronous mkdtemp. Creates a unique temporary directory.

unknown

PathLike

The directory prefix.

BufferEncodingOption

The encoding (or an object including encoding).

NonSharedBuffer

The path to the created temporary directory, encoded as a string or buffer.

mkdtempSync(this, prefix, options?): string

Defined in: src/node/sync.ts:644

Synchronous mkdtemp. Creates a unique temporary directory.

unknown

PathLike

The directory prefix.

EncodingOption

The encoding (or an object including encoding).

string

The path to the created temporary directory, encoded as a string or buffer.

mkdtempSync(this, prefix, options?): string | NonSharedBuffer

Defined in: src/node/sync.ts:645

Synchronous mkdtemp. Creates a unique temporary directory.

unknown

PathLike

The directory prefix.

BufferEncodingOption | EncodingOption

The encoding (or an object including encoding).

string | NonSharedBuffer

The path to the created temporary directory, encoded as a string or buffer.