Constructor
new WriteFileGate(path)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
path |
string
|
file path |
Methods
_stringify(item) → {string}
Convert item to string
- Source:
Parameters:
Name | Type | Description |
---|---|---|
item |
object
|
sended item |
Returns:
- Type:
-
string
written to stdout
(async) send(item) → {Promise}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
item |
object
|
written item |
Returns:
- Type:
-
Promise
- a promise that resolves when the item has been written