FchmodSync
Bun

function

fs.chmodSync

function chmodSync(
path: PathLike,
mode: Mode
): void;

For detailed information, see the documentation of the asynchronous version of this API: chmod.

See the POSIX chmod(2) documentation for more detail.