-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
Release 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 releasesemver:patchsemver patch level for changessemver patch level for changes
Description
Refs: nodejs/node#32321
Summary: process.umask()
(no args) will be deprecated and removed.
I couldn't quite divine what lib/config/defaults.js
uses process.umask()
for but in most cases you don't need to deal with the umask directly - the operating system will apply it automatically.
Example:
const mode = 0o777 & ~process.umask();
fs.mkdirSync(dir, mode);
Computing the file mode that way is superfluous, it can be replaced with just this:
fs.mkdirSync(dir, 0o777);
make-github-pseudonymous-again
Metadata
Metadata
Assignees
Labels
Release 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 releasesemver:patchsemver patch level for changessemver patch level for changes