17 lines
631 B
Plaintext
17 lines
631 B
Plaintext
var miniz = this
|
|
|
|
miniz.read[cell.DOC] = `Create a zip reader from the given ArrayBuffer containing an entire ZIP archive.
|
|
Return null if the data is invalid.
|
|
|
|
:param data: An ArrayBuffer with the entire ZIP file.
|
|
:return: A 'zip reader' object with methods for reading from the archive (mod, exists, slurp).
|
|
`
|
|
|
|
miniz.write[cell.DOC] = `Create a zip writer that writes to the specified file path. Overwrites the file if
|
|
it already exists. Return null on error.
|
|
|
|
:param path: The file path where the ZIP archive will be written.
|
|
:return: A 'zip writer' object with methods for adding files to the archive (add_file).
|
|
`
|
|
return miniz
|