atcheck/lsscanner/new_ubuntu/node_modules/npm/lib/utils/umask.js

18 lines
343 B
JavaScript
Raw Normal View History

2019-12-16 18:42:21 +01:00
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
}