Function mkdtempSync

  • Synchronous mkdtemp. Creates a unique temporary directory.

    Parameters

    • prefix: string

      The directory prefix.

    • options: BufferEncodingOption

      The encoding (or an object including encoding).

    Returns Buffer

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

  • Parameters

    • prefix: string
    • Optional options: EncodingOption

    Returns string