Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/toyobayashi/zauz

Simple zip and unzip.
https://github.com/toyobayashi/zauz

Last synced: 2 days ago
JSON representation

Simple zip and unzip.

Awesome Lists containing this project

README

        

# zauz

Usage

``` javascript
const { zip, unzip } = require('zauz')
zip('path/to/directory', 'path/to/zipfile.zip', (err, zipfileSize) => {})
zip('path/to/directory', 'path/to/zipfile.zip').then(zipfileSize => {}).catch(err => {});
(async function () {
try {
const zipfileSize = await zip('path/to/directory', 'path/to/zipfile.zip')
// ...
} catch (err) {
// ...
}
})()

unzip('path/to/zipfile.zip', 'path/to/directory', (err, totalSize) => {})
unzip('path/to/zipfile.zip', 'path/to/directory').then(totalSize => {}).catch(err => {});
(async function () {
try {
const totalSize = await unzip('path/to/zipfile.zip', 'path/to/directory')
// ...
} catch (err) {
// ...
}
})()
```