1.0.5 • Published 5 years ago

extract-zip-promise v1.0.5

Weekly downloads
349
License
MIT
Repository
github
Last release
5 years ago

Extract Zip Promise

Simple wrapper around extract-zip module, enabling promise interface.

CircleCI GitHub dependabot enabled

Installation

npm i extract-zip-promise

Usage

const extractZip = require("extract-zip-promise")
  //
;(async () => {
  try {
    await extractZip(archivePath, { dir: "destination/path" })
  } catch (e) {
    //error extracting zip file
  }
})()

Function signature is the same as extract-zip module.

Options object

  • dir - defaults to process.cwd()
  • defaultDirMode - integer - Directory Mode (permissions) will default to 493 (octal 0755 in integer)
  • defaultFileMode - integer - File Mode (permissions) will default to 420 (octal 0644 in integer)
  • onEntry - function - if present, will be called with (entry, zipfile), entry is every entry from the zip file forwarded from the entry event from yauzl. zipfile is the yauzl instance
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago