zfolder

1.1.2 • Public • Published

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

/zfolder/

    Package Sidebar

    Install

    npm i zfolder

    Weekly Downloads

    28

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    4.08 kB

    Total Files

    4

    Last publish

    Collaborators

    • tpkn