stat - Node documentation
function stat

Usage

import { stat } from "node:fs/promises";

Parameters

path: PathLike
optional
opts: StatOptions & { bigint?: false | undefined; }

Return Type

Promise<Stats>

Fulfills with the {fs.Stats} object for the given path.

Parameters

path: PathLike
opts: StatOptions & { bigint: true; }

Return Type

Promise<BigIntStats>

Parameters

path: PathLike
optional
opts: StatOptions

Return Type

Promise<Stats | BigIntStats>