mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
343 B
18 lines
343 B
10 years ago
|
var umask = require("umask")
|
||
|
var npmlog = require("npmlog")
|
||
|
var _fromString = umask.fromString
|
||
|
|
||
|
module.exports = umask
|
||
|
|
||
|
// fromString with logging callback
|
||
|
umask.fromString = function (val) {
|
||
|
_fromString(val, function (err, result) {
|
||
|
if (err) {
|
||
|
npmlog.warn("invalid umask", err.message)
|
||
|
}
|
||
|
val = result
|
||
|
})
|
||
|
|
||
|
return val
|
||
|
}
|