IOUtils
@codification/cutwater-node-core > IOUtils
Class
Utility for handling common IO related tasks.
beta:
Hierarchy
IOUtils
Methods
Methods
<Static>
bufferToReadable
▸ bufferToReadable(buffer: Buffer
): Readable
Defined in IOUtils.ts:13
Returns a Readable
stream containing the data from the specified Buffer
.
Parameters:
Name | Type | Description |
---|---|---|
buffer | Buffer | the `Buffer` containing the data to be streamed |
Returns: Readable
<Static>
readableToBuffer
▸ readableToBuffer(stream: Readable
): Promise
<Buffer
>
Defined in IOUtils.ts:26
Returns a Buffer
containing the data from the specified Readable
.
Parameters:
Name | Type | Description |
---|---|---|
stream | Readable | the `Readable` containing the data to be buffered |
Returns: Promise
<Buffer
>