interface
ArchiveEntryInit
interface ArchiveEntryInit
The contents of an archive entry, with its permissions.
new Bun.Archive({
"bin/run.sh": { data: "#!/bin/sh\necho hi\n", mode: 0o755 },
});- mode?: number
Unix permissions, such as
0o755. Themodeoffs.stat()works too: Bun ignores all but its lowest nine bits.Defaults to the permissions on disk for a Bun.file, to
0o755for a directory in a zip archive, and to0o644otherwise.