0.1.1 • Published 1 year ago

cozip v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

cozip

Cozy zip, an easy way to zip files based on adm-zip

Example

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
0.1.1

1 year ago

0.1.0

1 year ago