Function mkdtemp

  • Asynchronous mkdtemp. Creates a unique temporary directory.

    Parameters

    • prefix: string

      The directory prefix.

    • Optional options: EncodingOption

      The encoding (or an object including encoding).

    Returns Promise<string>

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

  • Parameters

    • prefix: string
    • Optional options: BufferEncodingOption

    Returns Promise<Buffer>