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

Usage in Deno

```typescript import { chown } from "node:node__fs.d.ts"; ```
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)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail.

Parameters

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

Return Type

void