0.0.2 • Published 6 months ago

capacitor-zip4j v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

capacitor-zip4j

capacitor plugin for zip4j (android only)

Install

npm install capacitor-zip4j
npx cap sync

API

extractAll(...)

extractAll(options: { zipFilePath: string; destDirectory: string; password?: string; }) => Promise<{ message: string; }>
ParamType
options{ zipFilePath: string; destDirectory: string; password?: string; }

Returns: Promise<{ message: string; }>


extractFile(...)

extractFile(options: { zipFilePath: string; destDirectory: string; fileName: string; newFileName: string; password?: string; }) => Promise<{ message: string; }>
ParamType
options{ zipFilePath: string; destDirectory: string; fileName: string; newFileName: string; password?: string; }

Returns: Promise<{ message: string; }>


removeFiles(...)

removeFiles(options: { zipFilePath: string; fileNames: string[]; password?: string; }) => Promise<{ message: string; }>
ParamType
options{ zipFilePath: string; fileNames: string[]; password?: string; }

Returns: Promise<{ message: string; }>


renameFile(...)

renameFile(options: { zipFilePath: string; oldFile: string; newFile: string; password?: string; }) => Promise<{ message: string; }>
ParamType
options{ zipFilePath: string; oldFile: string; newFile: string; password?: string; }

Returns: Promise<{ message: string; }>


mergeSplitFiles(...)

mergeSplitFiles(options: { zipFilePath: string; newZipFilePath: string; password?: string; }) => Promise<{ message: string; }>
ParamType
options{ zipFilePath: string; newZipFilePath: string; password?: string; }

Returns: Promise<{ message: string; }>


getAllFileNames(...)

getAllFileNames(options: { zipFilePath: string; password?: string; }) => Promise<{ names: string[]; }>
ParamType
options{ zipFilePath: string; password?: string; }

Returns: Promise<{ names: string[]; }>


isEncrypted(...)

isEncrypted(options: { zipFilePath: string; }) => Promise<{ isEncrypted: boolean; }>
ParamType
options{ zipFilePath: string; }

Returns: Promise<{ isEncrypted: boolean; }>


isSplitArchive(...)

isSplitArchive(options: { zipFilePath: string; password?: string; }) => Promise<{ isSplitArchive: boolean; }>
ParamType
options{ zipFilePath: string; password?: string; }

Returns: Promise<{ isSplitArchive: boolean; }>


setComment(...)

setComment(options: { zipFilePath: string; comment: string; password?: string; }) => Promise<{ message: string; }>
ParamType
options{ zipFilePath: string; comment: string; password?: string; }

Returns: Promise<{ message: string; }>


getComment(...)

getComment(options: { zipFilePath: string; password?: string; }) => Promise<{ comment: string; }>
ParamType
options{ zipFilePath: string; password?: string; }

Returns: Promise<{ comment: string; }>


containsFile(...)

containsFile(options: { zipFilePath: string; fileName: string; password?: string; }) => Promise<{ contains: boolean; }>
ParamType
options{ zipFilePath: string; fileName: string; password?: string; }

Returns: Promise<{ contains: boolean; }>


addFiles(...)

addFiles(options: { zipFilePath: string; files: string[]; password?: string; }) => Promise<{ message: string; }>
ParamType
options{ zipFilePath: string; files: string[]; password?: string; }

Returns: Promise<{ message: string; }>


addFolder(...)

addFolder(options: { zipFilePath: string; folder: string; password?: string; }) => Promise<{ message: string; }>
ParamType
options{ zipFilePath: string; folder: string; password?: string; }

Returns: Promise<{ message: string; }>


createSplitZipFile(...)

createSplitZipFile(options: { zipFilePath: string; files: string[]; splitLength: number; password?: string; }) => Promise<{ message: string; }>
ParamType
options{ zipFilePath: string; files: string[]; splitLength: number; password?: string; }

Returns: Promise<{ message: string; }>


addListener('extractAllProgressEvent' | 'renameFileProgressEvent' | 'removeFilesProgressEvent' | 'mergeSplitFilesProgressEvent' | 'setCommentProgressEvent' | 'addFilesProgressEvent' | 'addFolderProgressEvent' | 'createSplitZipFileProgressEvent', ...)

addListener(eventName: 'extractAllProgressEvent' | 'renameFileProgressEvent' | 'removeFilesProgressEvent' | 'renameFileProgressEvent' | 'mergeSplitFilesProgressEvent' | 'setCommentProgressEvent' | 'addFilesProgressEvent' | 'addFolderProgressEvent' | 'createSplitZipFileProgressEvent', listenerFunc: (obj: { progress: number; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'extractAllProgressEvent' | 'renameFileProgressEvent' | 'removeFilesProgressEvent' | 'mergeSplitFilesProgressEvent' | 'setCommentProgressEvent' | 'addFilesProgressEvent' | 'addFolderProgressEvent' | 'createSplitZipFileProgressEvent'
listenerFunc(obj: { progress: number; }) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>
acornacorn-jsxajvansi-colorsansi-regexansi-stylesargparsearray-buffer-byte-lengtharray-includesarray-unionarray.prototype.findlastindexarray.prototype.flatarray.prototype.flatmaparraybuffer.prototype.sliceastral-regexat-least-nodeavailable-typed-arraysbalanced-matchbrace-expansionbracescall-bindcallsiteschalkchevrotaincolor-convertcolor-namecoloretteconcat-mapcosmiconfigcross-spawndebugdeep-isdefine-data-propertydefine-propertiesdir-globdoctrineemoji-regexenquirererror-exes-abstractes-set-tostringtages-shim-unscopableses-to-primitiveescape-string-regexpeslint-config-prettiereslint-import-resolver-nodeeslint-module-utilseslint-plugin-importeslint-scopeeslint-utilseslint-visitor-keysespreeesprimaesqueryesrecurseestraverseesutilsfast-deep-equalfast-globfast-json-stable-stringifyfast-levenshteinfastqfile-entry-cachefill-rangeflat-cacheflattedfor-eachfs-extrafs.realpathfunction-bindfunction.prototype.namefunctional-red-black-treefunctions-have-namesget-intrinsicget-stdinget-symbol-descriptiongithub-sluggerglobglob-parentglobalsglobalthisglobbygopdgraceful-fshashas-bigintshas-flaghas-property-descriptorshas-protohas-symbolshas-tostringtagignoreimport-freshimurmurhashinflightinheritsinternal-slotis-array-bufferis-arrayishis-bigintis-boolean-objectis-callableis-core-moduleis-date-objectis-extglobis-fullwidth-code-pointis-globis-negative-zerois-numberis-number-objectis-regexis-shared-array-bufferis-stringis-symbolis-typed-arrayis-weakrefisarrayisexejava-parserjs-tokensjs-yamljson-bufferjson-parse-even-better-errorsjson-schema-traversejson-stable-stringify-without-jsonifyjson5jsonfilekeyvlevnlines-and-columnslodashlodash.mergelodash.truncatelru-cachemerge2micromatchminimatchminimistmsnatural-compareobject-inspectobject-keysobject.assignobject.fromentriesobject.groupbyobject.valuesonceoptionatorparent-moduleparse-jsonpath-is-absolutepath-keypath-parsepath-typepicomatchprelude-lsprogresspunycodequeue-microtaskregexp-to-astregexp.prototype.flagsregexpprequire-from-stringresolveresolve-fromreusifyrun-parallelsafe-array-concatsafe-regex-testsemverset-function-nameshebang-commandshebang-regexside-channelsignal-exitslashslice-ansisprintf-jsstring-widthstring.prototype.trimstring.prototype.trimendstring.prototype.trimstartstrip-ansistrip-bomstrip-json-commentssupports-colorsupports-preserve-symlinks-flagtabletext-tableto-regex-rangetree-killtsconfig-pathstslibtsutilstype-checktype-festtyped-array-buffertyped-array-byte-lengthtyped-array-byte-offsettyped-array-lengthunbox-primitiveuniversalifyuntildifyuri-jsv8-compile-cachewhichwhich-boxed-primitivewhich-typed-arraywrap-ansiwrappyyallistyaml
0.0.2

6 months ago

0.0.1

7 months ago