Type Definitions
ioOptions
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
filename |
string | undefined |
<nullable> |
The filename to read. If omitted, read from standard input. |
chunkCallback |
function | undefined |
<nullable> |
The function to call when an input chunk is read asynchronously. |
endCallback |
function | undefined |
<nullable> |
The function to call when the asynchronous read operation has completed. |
ioWriteOutputOptions
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
text |
string | The text to be written. | |
destination |
string | undefined |
<nullable> |
The filename to which to write the text. If omitted, text is written to standard output. |
callback |
function | undefined |
<nullable> |
A callback to be executed when the asynchronous write operation has completed. If omitted, the operation occurs synchronously instead. |