Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

mkdirp-infer-owner

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mkdirp-infer-owner

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

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
1.3M
0.8%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 11 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts