Skip to main content
openSync - node__fs.d.ts - Node documentation
function openSync

Usage in Deno

```typescript import { openSync } from "node:node__fs.d.ts"; ```
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](../.././node__fs.d.ts/~/open).

Parameters

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

Return Type

number