question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make tar-stream a TransformStream

See original GitHub issue

I mentioned this previously, but I’d like to be able to use tar-stream in this manner (or similar):

intar.pipe(tarStream(onentry, onfinish)).pipe(transformedTar)

I made a feeble attempt to get this to work outside of tar stream in dockerify lazy-stream branch, but had only mixed success.

The tests that all passed previously now only pass in node 0.10. I hope though this can server as a start to figure out how the above could be achieved.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Reactions:4
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chpiocommented, Mar 22, 2016

yeah, i needed that functionality too, that’s why i made the tar-vinyl-stream package, which consumes a tar stream and emits vinylobjects for each entry.

0reactions
pirannacommented, Apr 19, 2016

We should have here two transform objects, one for extract that consume a bytestream and emit data with stream objects, and another for pack that consume them and emit a bytestream. This probably would break API compatibility, so this should be a major version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TransformStream - Web APIs | MDN
Creates and returns a transform stream object, optionally specifying a transformation object and queuing strategies for the streams. Instance ...
Read more >
tar-stream - Bountysource
I'm creating a tool to automatically extract and decode timezone data. It's working well except for a couple of odd cases where my...
Read more >
How to write tar stream entry with unknown size?
Instead of using some module, if you just want to create a CSV from DB of an unknown size you can do the...
Read more >
Archiver API
See tar-stream documentation for additional properties. ... detaching internal module pipes; ending both sides of the Transform stream.
Read more >
compressing - npm.io
const compressing = require('compressing'); const tarStream = new compressing.tar. ... The transform stream to compress a single file.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found