Ende.umask
function ยท requires --allow-sys
function Ende.umask(mask?: number): numberRetrieve the process umask. If mask is provided, sets the process umask.
This call always returns what the umask was before the call.
console.log(Ende.umask()); // e.g. 18 (0o022)
const prevUmaskValue = Ende.umask(0o077); // e.g. 18 (0o022)
console.log(Ende.umask()); // e.g. 63 (0o077)
Requires allow-sys="umask" permission.
Note: This API is not implemented on Windows