JavaScript library to zip and unzip files supporting multi-core compression, compression streams, zip64, split files and encryption.
BSD-3-CLAUSE License
Bot releases are hidden (Show)
onstart
and onend
event handlers options when adding/reading zip entry data/cli-deno
using Streams to read and write dataPublished by gildas-lormeau over 2 years ago
Full Changelog: https://github.com/gildas-lormeau/zip.js/compare/v2.5.3...V2.5.4
CompressionStream
and DecompressionStream
APIsTransformStream
API under the hoodWarning: The TransformStream
API is quite new (especially in Node.js and Firefox), update to 2.5.x if you're sure the environment you are targeting supports it (it can also be polyfilled with https://github.com/MattiasBuelens/web-streams-polyfill by including https://unpkg.com/web-streams-polyfill/dist/polyfill.min.js).
make sure ZipWriter#close
is always called after all calls to ZipWriter#add
are completed (see https://github.com/gildas-lormeau/zip.js/discussions/338)
ReadableStreamReader
class to read ReadableStream
instances when adding files in a zip file (i.e. when calling ZipWriter#add
)dataDescriptorSignature
option to false
by default (when calling ZipWriter#add
) in order to produce zip files compatible with macOs Archiverindex.d.ts
Note that ReadableStreamReader
cannot be used when reading zip files because zip.js needs to do random reads.
Published by gildas-lormeau over 2 years ago
Improve type definitions of Reader
and Writer
classes
Full Changelog: https://github.com/gildas-lormeau/zip.js/compare/v2.4.20...v2.4.21