Nchown
Bun

namespace

fs.chown

function chown(
path: PathLike,
uid: number,
gid: number,
callback: NoParamCallback
): void;

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.

namespace chown