mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-14 23:26:18 +00:00
18 lines
343 B
JavaScript
18 lines
343 B
JavaScript
|
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
|
||
|
}
|