mkdirp-infer-owner
mkdirp, but chown to the owner of the containing folder if possible and necessary
Last updated 4 years ago by isaacs .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install mkdirp-infer-owner 
SYNC missed versions from official npm registry.

mkdirp-infer-owner

mkdirp, but chown to the owner of the containing folder if possible and necessary.

That is, on Windows and when running as non-root, it's exactly the same as mkdirp.

When running as root on non-Windows systems, it uses infer-owner to find the owner of the containing folder, and then chownr to set the ownership of the created folder to that same uid/gid.

This is used by npm to prevent root-owned files and folders from showing up in your home directory (either in node_modules or in the ~/.npm cache) when running as root.

Current Tags

  • 2.0.0                                ...           latest (4 years ago)

4 Versions

  • 2.0.0                                ...           4 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (2)

Copyright 2013 - present © cnpmjs.org | Home |