Skip to content

Expose streams API #302

@akg1

Description

@akg1

We currently have a setup where we can use different compression algorithms to decompress the data, and most work with some pattern of the following:

const stream = openStream();

let decompressedStream;
switch (compressionAlgorithm) {
   case 'none':
      decompressedStream = stream;
      break;

   case 'algA':
      decompressedStream = stream.pipe(AlgA.createDecodeStream())
      break;
 // etc
}

The ZstdCompressTransform in lib/zstd-stream.js looks very close to being able to do this, but as far as I can tell, it's not exposed via the npm package index.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions