
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Creates ZIP output streams. Depends on Node's build-in zlib module for compression available since version 0.6.
This version could use some proper testing. Give me a bump if you experience problems.
Written by Antoine van Wel (website).
npm install zipstream
createZip(options)
Creates a ZipStream object. Options are passed to Zlib.
ZipStream.addFile(inputStream, options, callback)
Adds a file to the ZIP stream. At his moment, options must contain "name". If the "store" option is set to true, the file will be added uncompressed.
ZipStream.finalize(callback(bytes written))
Finalizes the ZIP. When everything is done, callback is called with the total number of bytes in the ZIP archive.
var zipstream = require('zipstream');
var fs = require('fs');
var out = fs.createWriteStream('out.zip');
var zip = zipstream.createZip({ level: 1 });
zip.pipe(out);
zip.addFile(fs.createReadStream('README.md'), { name: 'README.md' }, function() {
zip.addFile(fs.createReadStream('example.js'), { name: 'example.js' }, function() {
zip.finalize(function(written) { console.log(written + ' total bytes written'); });
});
});
FAQs
Creates ZIP output streams.
We found that zipstream 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.