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.

Referenced types

type PathLike = string | Buffer | URL

Valid types for path values in "fs".

type OpenMode = number | string
type Mode = number | string