| .. | |||||
| clear-credentials-by-uri.js | |||||
| cmd-list.js | |||||
| core.js | |||||
| defaults.js | |||||
| find-prefix.js | |||||
| get-credentials-by-uri.js | |||||
| load-cafile.js | |||||
| load-prefix.js | |||||
| load-uid.js | |||||
| nerf-dart.js | |||||
| set-credentials-by-uri.js | |||||
| set-user.js |
module.exports = loadUid
var getUid = require('uid-number')
// Call in the context of a npmconf object
function loadUid (cb) {
// if we're not in unsafe-perm mode, then figure out who
// to run stuff as. Do this first, to support `npm update npm -g`
if (!this.get('unsafe-perm')) {
getUid(this.get('user'), this.get('group'), cb)
} else {
process.nextTick(cb)
}
}
| .. | |||||
| clear-credentials-by-uri.js | |||||
| cmd-list.js | |||||
| core.js | |||||
| defaults.js | |||||
| find-prefix.js | |||||
| get-credentials-by-uri.js | |||||
| load-cafile.js | |||||
| load-prefix.js | |||||
| load-uid.js | |||||
| nerf-dart.js | |||||
| set-credentials-by-uri.js | |||||
| set-user.js |