Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

support for compressFile option #69

Merged
merged 1 commit into from
Jul 19, 2019

Conversation

Kosta-Github
Copy link
Contributor

  • allows to gzip compress the output file
  • since the internal architecture does not allow to pass the output directly through an compressing output stream:
    • the result is written in an uncompressed manner as before,
    • the file is renamed by appending .temp to it,
    • and then stream processed with a pipeline of read stream -> gzip stream -> write stream into the final output file

implements issue #13 with a streaming approach not risking to blow up the memory

@Kosta-Github
Copy link
Contributor Author

@bradzacher rebased to your latest changes in develop branch...

src/compressFile.ts Outdated Show resolved Hide resolved
* allows to `gzip` compress the output file
* since the internal architecture does not allow to pass the output directly through an compressing output stream:
  * the result is written in an uncompressed manner as before,
  * the file is renamed by appending `.temp` to it,
  * and then stream processed with a pipeline of `read stream` -> `gzip stream` -> `write stream` into the final output file

implements issue bradzacher#13 with a streaming approach not risking to blow up the memory
@Kosta-Github
Copy link
Contributor Author

rebased on latest changes...

@bradzacher bradzacher merged commit 06b7cb8 into bradzacher:develop Jul 19, 2019
@Kosta-Github Kosta-Github deleted the compress-file branch March 26, 2020 14:16
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants