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)
onprogress
callback when calling ZipEntry#getData()
(see https://github.com/gildas-lormeau/zip.js/issues/234)signal
to ZipWriter
, ZipReader
, ZipWriter#add
and Entry#getData
which allows you to abort the compression/decompression of a file (see usage examples here and here)dataDescriptor
to ZipWriter#add
which allows you to include or not the data descriptor record (true
by default). Setting it to false
will automatically set the option bufferedWrite
to true
.zipCrypto: true
when creating a ZipWriter
object or calling ZipWriter#add
)type
to module
in package.json
onprogress
callback passed as optionkeepOrder
to the constructor ZipWriter
and the method ZipWriter#add
in order to keep ordered the list of files when calling ZipWriter#add
multiple times in parallelZipWriter#add
with more than one custom extra field type as optionERR_UNSUPPORTED_ENCRYPTION
Entry#zip64
to know if a file entry is formatted in Zip64zip-no-worker-deflate.min.js
and zip-no-worker-inflate.min.js
in the list of built files in the /dist folderUint8Array
objects in the Filesystem APIHttpReader
and HttpRangeReader
(see API doc)HttpReader
and HttpRangeReader
now rely on fetch
instead of XMLHTTPRequest
by default. This behavior can be changed by setting the option useXHR
to true
HttpReader
and HttpRangeReader
also accept window.fetch
options (when useXHR
is not set to true
)onprogress
callback where sometimes the first parameter was always returning 0
Entry#moveTo()
with FS#move()
. Entry#moveTo
can still be used but is deprecated.ZipFileEntry#replaceData64URI
methodFS
now implements ZipDirectoryEntry
ZipEntry#getRelativeName()
relativePath
when calling ZipDirectoryEntry.export*
methods