# new ZipWriter (pathToZipopt: string)
Arguments:
pathToZip
: string
Methods
# add (zipName: string, data: string) instance
Add string or binary data into archive as zipName
Arguments:
zipName
: stringName of new zip entry, can be a relative path 'folder/file.txt'.
data
: string| ArrayBufferView
# addFile (filePath: string, zipNameopt: string) instance
Add file content into archive
# addZipEntry (reader: ZipReader, index: number) instance
Copy compressed zip entry from reader
archive into this archive (without recompression)
# getAsArrayBuffer () → ArrayBuffer instance
If archive is in-memory (pathToZip is empty in constructor call) - return zipped content