28 lines
651 B
Markdown
28 lines
651 B
Markdown
# miniz
|
|
|
|
### read(data) <sub>function</sub>
|
|
|
|
Create a zip reader from the given ArrayBuffer containing an entire ZIP archive.
|
|
Return undefined if the data is invalid.
|
|
|
|
|
|
|
|
**data**: An ArrayBuffer with the entire ZIP file.
|
|
|
|
|
|
**Returns**: A 'zip reader' object with methods for reading from the archive (mod, exists, slurp).
|
|
|
|
|
|
### write(path) <sub>function</sub>
|
|
|
|
Create a zip writer that writes to the specified file path. Overwrites the file if
|
|
it already exists. Return undefined on error.
|
|
|
|
|
|
|
|
**path**: The file path where the ZIP archive will be written.
|
|
|
|
|
|
**Returns**: A 'zip writer' object with methods for adding files to the archive (add_file).
|
|
|