Function mkdtemp

  • Asynchronous mkdtemp. Creates a unique temporary directory.

    Parameters

    • prefix: string

      The directory prefix.

    • Optionaloptions: 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
    • Optionaloptions: BufferEncodingOption

    Returns Promise<Buffer>