Process.umask - Node documentation
method Process.umask

Usage in Deno

import { type Process } from "node:process";
Process.umask(): number
Deprecated

Calling process.umask() with no argument causes the process-wide umask to be written twice. This introduces a race condition between threads, and is a potential * security vulnerability. There is no safe, cross-platform alternative API.

process.umask() returns the Node.js process's file mode creation mask. Child processes inherit the mask from the parent process.

Return Type

number
Process.umask(mask: string | number): number

Can only be set if not in worker thread.

Parameters

mask: string | number

Return Type

number