Skip to content

surkaa/srcpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

srcpack

srcpack is a blazing fast CLI tool to pack source code into a ZIP file, automatically respecting .gitignore rules.

It helps you back up or share your code without manually excluding node_modules, target, or .git folders.

Installation

cargo install srcpack

Usage

Run inside your project directory:

srcpack

Options

# Pack a specific directory
srcpack path/to/project

# Specify output filename
srcpack --output my-backup.zip

# Manually exclude specific patterns (in addition to .gitignore)
srcpack --exclude "*.mp4" --exclude "secrets/"

# Compression Levels
srcpack --store   # Store only (0 compression, fastest)
srcpack --fast    # Fast compression
srcpack --best    # Best compression (smallest size, slower)

# Analyze mode: Dry run to list files without zipping
srcpack --dry-run

# Analyze mode + Top files: Find the largest space consumers
srcpack --dry-run --top 20

About

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Contributors

Languages