chown - Node documentation
function chown

Usage

import { chown } from "node:fs";

Asynchronously changes owner and group of a file. No arguments other than a possible exception are given to the completion callback.

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

Parameters

path: PathLike
uid: number
gid: number
callback: NoParamCallback

Return Type

void