
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
extract-zip-promise
Advanced tools
Simple wrapper around extract-zip module, enabling promise interface.
npm i extract-zip-promise
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.
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 instanceFAQs
Wrapper arount extract-zip enabling promise interface.
The npm package extract-zip-promise receives a total of 88 weekly downloads. As such, extract-zip-promise popularity was classified as not popular.
We found that extract-zip-promise demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.