How to use chownr - 4 common examples

To help you get started, we’ve selected a few chownr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github npm / node-tar / lib / mkdir.js View on Github external
const done = (created) => {
    cache.set(dir, true)
    if (created && doChown)
      chownr.sync(created, uid, gid)
    if (needChmod)
      fs.chmodSync(dir, mode)
  }
github sx1989827 / DOClever / node_modules / fsevents / node_modules / tar / lib / mkdir.js View on Github external
const done = (created) => {
    cache.set(dir, true)
    if (created && doChown)
      chownr.sync(created, uid, gid)
    if (needChmod)
      fs.chmodSync(dir, mode)
  }
github GoogleContainerTools / kpt / docsy / node_modules / fsevents / node_modules / tar / lib / mkdir.js View on Github external
const done = (created) => {
    cache.set(dir, true)
    if (created && doChown)
      chownr.sync(created, uid, gid)
    if (needChmod)
      fs.chmodSync(dir, mode)
  }
github nodejitsu / module-smith / lib / builder.js View on Github external
uidNumber(buildDescription.uid, buildDescription.gid, function (err, uid, gid) {
    if (err) {
      return callback(err);
    }

    async.waterfall([
      fs.readFile.bind(fs, pkgFile),
      updatePackage,
      chownr.bind(chownr, dir, uid, gid)
    ], function (err) {
      callback(err, buildDescription);
    });
  });
};

chownr

like `chown -R`

BlueOak-1.0.0
Latest version published 8 months ago

Package Health Score

70 / 100
Full package analysis

Popular chownr functions