| Crates.io | krnchr |
| lib.rs | krnchr |
| version | 0.1.1 |
| created_at | 2025-11-08 22:27:27.444649+00 |
| updated_at | 2025-11-08 22:31:12.11447+00 |
| description | Combine files into a single output. Supports JSON, text, XML, YAML, and CSV formats. |
| homepage | |
| repository | https://github.com/GriffinCanCode/krnchr |
| max_upload_size | |
| id | 1923347 |
| size | 26,793 |
A lightning-fast, lossless file aggregator written in Rust. Combines multiple files into a single output file with configurable formats.
Install from crates.io:
cargo install krnchr
Or build from source:
git clone https://github.com/GriffinCanCode/krnchr
cd krnchr
cargo build --release
The binary will be available at target/release/krnch
krnch <path> <format>
path: Directory or file path to process (relative or absolute)format: Output format (json, text, xml, yaml, csv)# Crunch all files in current directory to JSON
krnch ./ json
# Crunch specific directory to text format
krnch ./src text
# Crunch single file to XML
krnch ./README.md xml
# Crunch with relative path to YAML
krnch ../data yaml
# Crunch to CSV
krnch ./logs csv
Structured JSON with base64-encoded content, file metadata, and totals.
Plain text format with file separators and raw content.
XML format with base64-encoded content and file attributes.
YAML format with file metadata and base64-encoded content.
CSV format with columns: path, size, content_base64.
Output files are created in the current directory:
crunched.jsoncrunched.txtcrunched.xmlcrunched.yamlcrunched.csvModular design with focused modules:
main.rs: Entry point and orchestrationcli.rs: Command-line argument parsingtypes.rs: Shared data structures and enumsreader.rs: Parallel file discovery and readingformatter.rs: Output format implementationswriter.rs: File output handlingSee LICENSE for full license text.