https://github.com/noah227/cozip
https://github.com/noah227/cozip
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/noah227/cozip
- Owner: noah227
- Created: 2023-07-28T08:27:36.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-09T02:05:54.000Z (11 months ago)
- Last Synced: 2025-02-23T02:38:08.523Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cozip
> Cozy zip, an easy way to zip files based on [adm-zip](https://www.npmjs.com/package/adm-zip)
## Example
```js
const cozip = require("cozip")cozip("./pack.zip",[
// [path, isFolder, filter],
["./", true, (p) => !p.endsWith(".tts") && !p.endsWith(".zip")],
], err => {
// if(err) ...
})
```> tree
```
┬ index.js
│ pack.zip
│ test.js
│
├─logs
└─src
│ 1.txt
│ 2.txt
│ 3.tts
│
└─inner
ii.yml
```> tree(zip file)
```
┬ index.js
│ test.js
│
├─logs
└─src
│ 1.txt
│ 2.txt
│
└─inner
ii.yml
```