mirror of https://github.com/ColorlibHQ/gentelella
				
				
				
			
		
			
				
	
	
	
		
			2.2 KiB
		
	
	
	
	
			
		
		
	
	
			2.2 KiB
		
	
	
	
	
| title | layout | section | 
|---|---|---|
| ZipObject API | default | api | 
This represents an entry in the zip file. If the entry comes from an existing archive previously loaded, the content will be automatically decompressed/converted first.
Attributes
| attribute name | type | description | 
|---|---|---|
name | 
string | the absolute path of the file | 
dir | 
boolean | true if this is a directory | 
date | 
date | the last modification date | 
comment | 
string | the comment for this file | 
unixPermissions | 
16 bits number | The UNIX permissions of the file, if any. | 
dosPermissions | 
6 bits number | The DOS permissions of the file, if any. | 
options | 
object | the options of the file. The available options are : | 
options.base64 | 
boolean | Deprecated, see file(name, data [,options]) | 
options.binary | 
boolean | Deprecated, see file(name, data [,options]) | 
options.dir | 
boolean | Deprecated, use dir. True if this is a directory | 
options.date | 
date | Deprecated, use date. See file(name, data [,options]) | 
options.compression | 
compression | see file(name, data [,options]) | 
Getters
| method | return type | description | 
|---|---|---|
asText() | 
string | the content as an unicode string. | 
asBinary() | 
string | the content as binary string. | 
asArrayBuffer() | 
ArrayBuffer | need a compatible browser. | 
asUint8Array() | 
Uint8Array | need a compatible browser. | 
asNodeBuffer() | 
nodejs Buffer | need nodejs. |