cozip
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i cozip

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

4.13 kB

Total Files

6

Last publish

Collaborators

  • noahyoung