Skip to content

write only API #356

Open
Open
@dduponchel

Description

@dduponchel

JSZip is currently designed to hold everything in memory (or, after solving #290, sometimes a reference to the content). In some scenarios, we want to write things only once and generate a big zip file. Streaming the result takes care of the memory taken by the zip file but not the memory used by the entries being zipped.
We can add everything as a stream and then use generateInternalStream but that means opening a lot of streams, pausing all of them and hoping they won't be closed by the time we read them.

We could add an extra option to discard the content ASAP but that would give a weird result. I would rather create an other API looking like zip.js for example. That way, we could add as many file without much troubles.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions