1.0.2 • Published 6 years ago

zauz v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

zauz

Usage

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) {
    // ...
  }
})()