
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@bung87/gitzip
Advanced tools
This module provides a gitzip command that creates zip file ignoring files from .gitignore file.
If the source folder doesn't contain .gitignore then all files will be zipped.
:bulb: Useful to share the current changes while working on git repository. It complements the git archive where you don't need to commit or stash the changes to create untracked changed file.
npm install -g gitzip
go to the folder you want to zip and run
gitzip
This will generate submission.zip
package.json scriptsnpm install --save-dev gitzip
package.json:
{
//...
"scripts": {
"build" "...",
"zip": "gitzip -d bundle.zip -s build/*",
"upload": "....",
"deploy": "npm run build && npm run zip && npm run upload"
}
}
var zip = require('gitzip');
zip({
source: 'build/*',
destination: './destination.zip',
exclude: ['destination.zip'],
include: ['.git']
}).then(function() {
console.log('all done!');
}).catch(function(err) {
console.error(err.stack);
process.exit(1);
});
* Type: `string`
* Default: `.` current directory
Path to files and folders to include in the zip file. String or Array of Strings. Defaults to current path.
* Type: `string`
* Default: `submission.zip` at current directory
Path to generated .zip file. Defaults to submission.zip in current path.
* Type: `string[]`
Array of strings of file pattern to exclude from zip
* Type: `string[]`
Array of strings of file pattern to include in zip.
Note, include has more precedence than exclude
Node 8 or greater
This software is released under the terms of the MIT license.
FAQs
Archives ignoring files from gitignore
We found that @bung87/gitzip 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.