Class: PlainZip

PlainZip(nameOrData, data)

new PlainZip(nameOrData, data)

Uncompressed zip file
Parameters:
Name Type Description
nameOrData Either basename of zip file if no initial data or just the data if no specific name is required
data Data if a basename is required
Source:

Methods

addData(arrayOfData) → {undefined}

Adds data to the zip file
Parameters:
Name Type Description
arrayOfData Array | Object Data must be an array of objects with each object having string:name, string:data or Uint8Array data and unixTimestamp:modified. Alternatively a name/value dictionary may be given.
Source:
Returns:
Type
undefined

download(filenameopt) → {undefined}

Locks the Zip file and initiates a download
Parameters:
Name Type Attributes Description
filename string <optional>
Filename to be offered for download (overrides previously configured name if set)
Source:
Returns:
Type
undefined

finalize() → {Uint8Array}

Locks the Zip file and returns the byte stream
Source:
Returns:
Type
Uint8Array

getObjectURL() → {string}

Locks the Zip file and returns an object url
Source:
Returns:
Type
string