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

Usage in Deno

```typescript import { fstatSync } from "node:node__fs.d.ts"; ```
fstatSync(
fd: number,
options?: StatOptions & { bigint?: false | undefined; },
): Stats
Retrieves the `fs.Stats` for the file descriptor. See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail.

Parameters

fd: number
optional
options: StatOptions & { bigint?: false | undefined; }

Return Type

fstatSync(
fd: number,
options: StatOptions & { bigint: true; },
): BigIntStats

Parameters

fd: number
options: StatOptions & { bigint: true; }

Return Type

fstatSync(
fd: number,
options?: StatOptions,
): Stats | BigIntStats

Parameters

fd: number
optional
options: StatOptions

Return Type