Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Wrapper for 7zip which attempts to provide an extraction status (something the 7z command doesn't really do).
The 7z command is required and needs to be in PATH or the root of your application i.e. where package.json is sitting.
# OSX
$ brew update && brew doctor && brew install p7zip
# Ubuntu
$ sudo apt-get install p7zip-full
npm install 7z-extract --save
const archive = new Zip(options);
false
)archive.list(); //- returns a promise, the result of which is an object including array of files in the archive
archive.extract(progress); //- extracts the archive and returns a promise, progress function optionally returns current status as object (index, totalNumberOfFiles, percentage)
To see info on a CBZ file.
'use strict';
const path = require('path'),
Zip = require('../index'),
inputFile = path.join(__dirname, 'archive.zip'),
outputPath = path.join(__dirname), // optional, if not supplied uses /tmp
progress = info => {
console.log(info);
};
const archive = new Zip({ input: inputFile, output: outputPath, createFolder: true });
// archive.list()
// .then(res => { if (res){ console.log('Success!', res); } })
// .catch(err => { console.error(err); });
archive.extract(progress)
.then(res => { console.log('Success!', res); })
.catch(err => { console.error(err); });
FAQs
7z wrapper with progress (promises/es6)
The npm package 7z-extract receives a total of 9 weekly downloads. As such, 7z-extract popularity was classified as not popular.
We found that 7z-extract 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.