file
Get a file from the archive
Return
File matching path, null if no file found
Parameters
Path
relative path to file
Get files matching a RegExp from archive
Return
Return all matching files or an empty array
Parameters
path
RegExp to match
external fun file(name: String, data: String, options: JSZipFileOptions? = definedExternally)(source)
Add a file to the archive
Return
JSZip object
Parameters
path
Relative path to file
data
Content of the file
options
Optional information about the file
external fun file(name: String, data: Uint8Array<*>, options: JSZipFileOptions? = definedExternally)(source)
external fun file(name: String, data: ArrayBuffer, options: JSZipFileOptions? = definedExternally)(source)