animetosho / ParPar

High performance PAR2 create client for NodeJS
202 stars 21 forks source link

Pipe outputs to another process #42

Open sntran opened 2 years ago

sntran commented 2 years ago

In README, it is said that "output doesn’t have to be written to disk", but I can't find documentation on how to do that.

Specifically, how would we combine ParPar with, for example nyuu to have a single pipeline from a single file to a a group of that file and recovery files for Nyuu to post, without touching the disk?

animetosho commented 2 years ago

That was a motivation, but can't be done yet.
There's a few complications with getting it to do that in the CLI, such as needing to write multiple files (can't be easily piped), and if chunking mode is used, it actually can't be streamed.

One of the end goals of ParPar was to eventually integrate it into Nyuu so that PAR2 generation can occur directly in the uploading pipeline. I just haven't gotten around to it yet.