Sha256: bf7426aed2cb158193741d152bd911473663269dec9bf9d9ee44fe363f28cd4f
Contents?: true
Size: 386 Bytes
Versions: 27
Compression:
Stored size: 386 Bytes
Contents
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) } }
Version data entries
27 entries across 20 versions & 3 rubygems