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


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


fun file(name: String, data: Uint8Array<*>, options: JSZipFileOptions? = definedExternally)(source)
fun file(name: String, data: ArrayBuffer, options: JSZipFileOptions? = definedExternally)(source)
fun file(name: String, data: Blob, options: JSZipFileOptions? = definedExternally)(source)
fun file(path: String, data: Void, options: JSZipFileOptions)(source)