• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1var umask = require('umask')
2var npmlog = require('npmlog')
3var _fromString = umask.fromString
4
5module.exports = umask
6
7// fromString with logging callback
8umask.fromString = function (val) {
9  _fromString(val, function (err, result) {
10    if (err) {
11      npmlog.warn('invalid umask', err.message)
12    }
13    val = result
14  })
15
16  return val
17}
18