openSync - Node documentation
function openSync

Usage in Deno

import { openSync } from "node:fs";
openSync(
path: PathLike,
flags: OpenMode,
mode?: Mode | null,
): number

Returns an integer representing the file descriptor.

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

Parameters

path: PathLike
optional
flags: OpenMode = 'r'
optional
mode: Mode | null = 0o666

Return Type

number