Welcome to mirror list, hosted at ThFree Co, Russian Federation.

umask.js « utils « lib - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6ccb4a1194b658d3a48154012593bfb00150705f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}