Refs: nodejs/node#32321
Summary: process.umask() (no args) will be deprecated and removed.
Reviewing this module, it uses process.umask() in roughly this pattern:
const mode = 0o777 & ~process.umask();
fs.mkdirSync(dir, mode);
Computing the file mode that way is superfluous because the operating system applies the umask anyway. It can be replaced with just this:
fs.mkdirSync(dir, 0o777);
Refs: nodejs/node#32321
Summary:
process.umask()(no args) will be deprecated and removed.Reviewing this module, it uses
process.umask()in roughly this pattern:Computing the file mode that way is superfluous because the operating system applies the umask anyway. It can be replaced with just this: