How to disable compression of a newly created ZIP? #428
-
I just want to use the "archive" feature of ZIP and put some files into a ZIP, how to forego compression? Best regards, |
Beta Was this translation helpful? Give feedback.
Answered by
gildas-lormeau
Jun 13, 2023
Replies: 1 comment
-
You have to set the option See here for an example of code: zip.js/tests/all/test-store.js Line 15 in eb89a9c See here for the documentation: https://gildas-lormeau.github.io/zip.js/api/interfaces/ZipWriterConstructorOptions.html#level. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
drauch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have to set the option
level
to0
when creating aZipWriter
instance or when calling theadd
method.See here for an example of code:
zip.js/tests/all/test-store.js
Line 15 in eb89a9c
See here for the documentation: https://gildas-lormeau.github.io/zip.js/api/interfaces/ZipWriterConstructorOptions.html#level.