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)
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| clear-credentials-by-uri.js | File | 423 B | 0644 |
|
| cmd-list.js | File | 1.83 KB | 0644 |
|
| core.js | File | 11.03 KB | 0644 |
|
| defaults.js | File | 9.98 KB | 0644 |
|
| find-prefix.js | File | 1.31 KB | 0644 |
|
| get-credentials-by-uri.js | File | 2.06 KB | 0644 |
|
| load-cafile.js | File | 682 B | 0644 |
|
| load-prefix.js | File | 1.3 KB | 0644 |
|
| load-uid.js | File | 386 B | 0644 |
|
| nerf-dart.js | File | 471 B | 0644 |
|
| set-credentials-by-uri.js | File | 1.24 KB | 0644 |
|
| set-user.js | File | 749 B | 0644 |
|