"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/npm/lib/utils/umask.js" (8 Mar 2017, 343 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 var umask = require('umask')
    2 var npmlog = require('npmlog')
    3 var _fromString = umask.fromString
    4 
    5 module.exports = umask
    6 
    7 // fromString with logging callback
    8 umask.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 }