Files
bun.sh/test/js
Claude Bot 64fd7ca062 Add Bun.tarball() and Bun.extract() APIs
Adds APIs for creating and extracting tar archives.

Bun.tarball() creates tar/tar.gz archives from objects:
- files: Record<string, string | Blob | BunFile | Buffer>
- compress: "gzip" | { type: "gzip", level: 0-9 }
- destination: optional path to write archive to disk

Bun.extract() extracts tar/tar.gz archives:
- from Blob, BunFile, Buffer, or file path
- to memory (returns Record<string, Blob>)
- or to disk with destination option
- skipPathComponents: strip N leading path components

Implementation:
- Uses libarchive for tar handling
- TarballJob: 207 lines
- ExtractJob: 205 lines (reuses Archiver.extractToDir for disk)
- Zero comments, production-quality code
- Proper memory ownership via Blob.Store
- All 33 tests passing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 01:57:19 +00:00
..
2025-10-06 05:39:22 -07:00