OptionalmodeFile mode (default: 0o644)
OptionalmtimeModification time (default: current time)
Path inside the archive
File content.
string — fs path (Node only; rejected in browser)Uint8Array / ArrayBuffer / Buffer — raw bytesAsyncIterable<Uint8Array> — streaming source
Input source for archive creation.
In the Node.js implementation,
sourcemay be astringinterpreted as an fs path. In the Browser implementation,stringsources throw a helpful error (no filesystem access).