0.1.14 • Published 6 years ago

viva-unpack v0.1.14

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
6 years ago

Members

Functions

Typedefs

viva-unpack: (license MIT) recursive zip-archive unpacking made on the library adm-zip

Kind: global variable
Author: Vitalii Vasilev
License: MIT

unpack(path_file, path_root, options) ⇒ Array.<string>

Kind: global function
Returns: Array.<string> - all unpacked files

ParamTypeDescription
path_filestringfull file name
path_rootstringfull root path name
optionstype_options

Example

require('viva-unpack').unpack('1.zip','C:\\unpack_to')

unpack_text(path_file, name_text_file) ⇒ string

Kind: global function

ParamTypeDescription
path_filestringfull file name
name_text_filestringfile name in archive

Example

let text = require('viva-unpack').unpack_file('c:\\1.zip','1.txt')

pack_local_files(paths_file_to_pack, path_pack)

Kind: global function

ParamTypeDescription
paths_file_to_packArray.<string> | stringfull file name
path_packstringfull root path name

Example

require('viva-unpack').pack_local_files('c:\\1.txt','C:\\1.zip')

pack_local_files~files : Array.<string>

Kind: inner property of pack_local_files

pack_texts(paths_file_to_pack, path_pack)

Kind: global function

ParamTypeDescription
paths_file_to_packArray.<type_text> | type_textfull file name
path_packstringfull root path name

Example

require('viva-unpack').pack_local_files('c:\\1.txt','C:\\1.zip')

pack_texts~files : Array.<type_text>

Kind: inner property of pack_texts

type_options

Kind: global typedef
Properties

NameTypeDescription
extensionsArray.<string>list file extension, example - 'docx','epub'
action_extensionstringignore extensions ('deny') or allow only this extension ('allow')

type_text

Kind: global typedef
Properties

NameTypeDescription
textstringbody file
namestringname file
0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.3

7 years ago