Nodejs does support octal numbers. umask module uses it internationally.
Octals should follow specific 0oxxx format in nodejs, umask can interprets decimal like numbers say 022 as octal -- Sent from my Android device with K-9 Mail. Please excuse my brevity.