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.
- Host: GitHub
- URL: https://github.com/chdh/node-zip
- Owner: chdh
- License: mit
- Created: 2023-01-06T04:33:03.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-05T05:45:52.000Z (about 1 year ago)
- Last Synced: 2025-05-24T14:56:04.718Z (8 months ago)
- Topics: nodezip, zip-command-line, zipfile, zipper
- Language: TypeScript
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.