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.

feature request | streaming implementation

See original GitHub issue

I have a server that will be receiving up to 50MB files. I’d like to avoid buffering this request for obvious reasons 😃

example API:

aReadableStream
  .pipe(admZip.parseStream)
  .on('entry', function (entry) {
    var fileName = entry.path;
    var type = entry.type; // 'Directory' or 'File'
    var size = entry.size;
    if (type == 'File' && fileName === 'target.png') {
      // capture the data for this one entry
      entry.pipe(fs.createWriteStream('path/to/target.png'));
    } else {
      entry.discard();
    }
  });

Issue Analytics

  • State:open
  • Created 10 years ago
  • Reactions:7
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Anifactedcommented, Apr 8, 2015

For anyone looking for streamable zipping and unzipping, yazl and yauzl have my recommendations!

Yazl (Zipping): https://www.npmjs.com/package/yazl Yauzl (Unzipping): https://www.npmjs.com/package/yauzl

Very clean and stable API.

0reactions
sntrancommented, Dec 28, 2021

Currently, yazl supports creating archive from streams.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Streaming requests with the fetch API - Chrome Developers
To allow streams to be used in a request, the duplex request option needs to be set to 'half' . A little-known feature...
Read more >
Streaming is just an implementation detail
Microservices are stream processing; whether you're using Redis, Kafka, or gRPC, you continuously handle events and manage consistency.
Read more >
(Implemented) Add streaming feature to geotrace/ge...
A streaming feature (similar to Collector) would be helpful for creating geotrace and geoshape features in Survey123.
Read more >
Streaming ingestion | Vertex AI
Write a value to a particular feature. The feature value must be included as part of the ingestion request. You can't stream data...
Read more >
Implications of the streaming nature of Request/Response ...
Put another way: Streaming all the way through is a feature of Akka HTTP that allows consuming entities (and pulling them through the...
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