Type Definitions
CreateTempPathCallback(errornullable, resultPath)
- Description:
Callback function to handle the result or error from calling the createTempPath function.
- Source:
- Since:
- 0.2.0
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error |
<nullable> |
An error object if an error occurred, or |
resultPath |
string | The path of the created temporary directory or file. |
TempPathOptions
- Description:
An object representating options to configure the tempoarary file or directory creation within this module.
- Source:
- Since:
- 0.3.0
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
asFile |
boolean |
<optional> |
false
|
Whether to create a temporary file instead directory. |
ext |
string |
<optional> |
'.tmp'
|
An extension name to use for tempoarary file creation.
Ignored if the |
maxLen |
number |
<optional> |
32
|
The maximum characters' length of the generated temporary directory or file name. |
An object representating options to configure the tempoarary file or directory creation within this module.
Type:
- Object