1.1.2 • Published 5 years ago

zfolder v1.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

ZFolder npm Package

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 settings
  • recursive <Boolean> If false, 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
1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago