Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/toyobayashi/zauz
- Owner: toyobayashi
- License: mit
- Created: 2018-05-07T15:37:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-16T08:31:38.000Z (about 6 years ago)
- Last Synced: 2024-10-11T20:58:33.009Z (27 days ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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) {
// ...
}
})()
```