Constructor
new ReadLineStreamGate(readStream)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
readStream |
stream.Readable
|
readable stream |
Methods
_parse(data) → {object}
Convert string to item. Sub-class should override
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data |
string
|
a line from stdin |
Returns:
- Type:
-
object
item returned to the receiver
receive() → {Promise.<object>}
- Source:
Returns:
- Type:
-
Promise.<object>
- A promise that resolves the item when a line can be read