JSZipObject

Properties

Link copied to clipboard
abstract external val comment: String?
Link copied to clipboard
abstract external val date: Date
Link copied to clipboard
abstract external val dir: Boolean
Link copied to clipboard
abstract external val dosPermissions: Int?

The UNIX permissions of the file, if any.

Link copied to clipboard
abstract external val name: String
Link copied to clipboard
abstract external val options: JSZipObjectOptions
Link copied to clipboard
abstract external val unixPermissions: Int?

The UNIX permissions of the file, if any.

Link copied to clipboard
abstract external val unsafeOriginalName: String?

Present for files loadded with loadAsync. May contain ".." path components that could result in a zip-slip attack. See https://snyk.io/research/zip-slip-vulnerability

Functions

Link copied to clipboard
inline suspend fun JSZipObject.arrayBuffer(): ArrayBuffer
Link copied to clipboard
abstract external fun <R : JsAny> async(type: OutputType<R>, onUpdate: OnUpdateCallback? = definedExternally): Promise<R>

Prepare the content in the asked type.

Link copied to clipboard
inline suspend fun JSZipObject.blob(): Blob
Link copied to clipboard
Link copied to clipboard
inline suspend fun JSZipObject.bytes(): Uint8Array<ArrayBuffer>
Link copied to clipboard
inline suspend fun JSZipObject.text(): String