feature request | streaming implementation
See original GitHub issueI 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:
- Created 10 years ago
- Reactions:7
- Comments:13 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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.
Currently,
yazlsupports creating archive from streams.