zfolder
v1.1.2
Published
Zip all files inside folder
Downloads
86
Maintainers
Readme
ZFolder
Zip all files inside folder
Node module that recursively zips files inside given folder.
Installation
npm install zfolder
API
await ZFolder(folder[, zip_path, options])
folder
Type: String
zip_path
Type: String
options
Type: Object
filter
<Object> | <Function> Filter some files. For more details check ReadDirRec module settingsrecursive
<Boolean> Iffalse
, then nested files would be ignored.true
by default
@return
Type: Object
Returns path to zip-archive and total zipped files
{
path: Z:/ ... /test.zip,
}
Usage
const ZFolder = require('zfolder');
let result = await ZFolder('./test/');
Changelog
v1.1.0 (2019-03-16):
- added option to
filter
files inside the folder