Fchmod
Bun

function

fs.promises.chmod

function chmod(
path: PathLike,
mode: Mode
): Promise<void>;

Changes the permissions of a file.

@returns

Fulfills with undefined upon success.

Referenced types

type PathLike = string | Buffer | URL

Valid types for path values in "fs".

type Mode = number | string