chownSync - Node documentation
function chownSync

Usage

import { chownSync } from "node:fs";

Synchronously changes owner and group of a file. Returns undefined. This is the synchronous version of chown.

See the POSIX chown(2) documentation for more detail.

Parameters

path: PathLike
uid: number
gid: number

Return Type

void