An open API service indexing awesome lists of open source software.

https://github.com/chdh/node-zip

A Node.js-based command line tool for creating ZIP files.
https://github.com/chdh/node-zip

nodezip zip-command-line zipfile zipper

Last synced: 7 months ago
JSON representation

A Node.js-based command line tool for creating ZIP files.

Awesome Lists containing this project

README

          

# NodeZip

A Node.js-based command line tool for creating ZIP files.

This program is written in TypeScript and compiled to JavaScript.
It uses the [yazl library](https://github.com/thejoshwolfe/yazl) to generate ZIP files.
You have to install [Node.js](https://nodejs.org) in order to use it.

## Usage

```Shell
node nodezip.mjs "zipFileName"
[-c "baseDir"] [-p "prefix"] "inclPath" [...] [-x "exclPath" ...]
[-c ...]
```

zipFileName

Output ZIP file name.


baseDir

Base directory for subsequent "inclPath" and "exclPath".


prefix

Output directory prefix path for the files within the ZIP file.


inclPath


Glob pattern for files to include.


exclPath


Glob pattern for files to exclude and for directories to ignore.


## Examples

```Shell
node nodezip.mjs backup.zip "**/*.ts" "doc"
```

```Shell
node nodezip.mjs backup.zip "**" -x "**/node_modules" "**/dist"
```

Under Windows, quotes can be omitted and backslashes are allowed in paths.