Cutwater

Cutwater

  • Docs
  • Help
  • GitHub

IOUtils

@codification/cutwater-node-core > IOUtils

Class

Utility for handling common IO related tasks.

beta:

Hierarchy

IOUtils

Methods

  • bufferToReadable
  • readableToBuffer

Methods

<Static> bufferToReadable

▸ bufferToReadable(buffer: Buffer): Readable

Defined in IOUtils.ts:13

Returns a Readable stream containing the data from the specified Buffer.

Parameters:

NameTypeDescription
bufferBufferthe `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:

NameTypeDescription
streamReadablethe `Readable` containing the data to be buffered

Returns: Promise<Buffer>


  • Class
  • Hierarchy
    • Methods
  • Methods
    • `` bufferToReadable
    • `` readableToBuffer
Cutwater
Docs
Getting Started
Community
Stack Overflow
More
GitHubStar
Copyright © 2019 Codification.org