openSync - Node documentation
function openSync

Usage

import { openSync } from "node:fs";

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