FopenSync
Bun

function

fs.openSync

function openSync(
path: PathLike,
flags?: OpenMode,
mode?: null | Mode
): number;

Returns an integer representing the file descriptor.

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