mkdirp-infer-owner

WebJar for mkdirp-infer-owner

License

License

ISC
Categories

Categories

Infer Application Testing & Monitoring Code Analysis owner Application Layer Libs Configuration
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

mkdirp-infer-owner
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

mkdirp-infer-owner
WebJar for mkdirp-infer-owner
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/isaacs/mkdirp-infer-owner

Download mkdirp-infer-owner

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/mkdirp-infer-owner/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>mkdirp-infer-owner</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/mkdirp-infer-owner/
implementation 'org.webjars.npm:mkdirp-infer-owner:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/mkdirp-infer-owner/
implementation ("org.webjars.npm:mkdirp-infer-owner:2.0.0")
'org.webjars.npm:mkdirp-infer-owner:jar:2.0.0'
<dependency org="org.webjars.npm" name="mkdirp-infer-owner" rev="2.0.0">
  <artifact name="mkdirp-infer-owner" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='mkdirp-infer-owner', version='2.0.0')
)
libraryDependencies += "org.webjars.npm" % "mkdirp-infer-owner" % "2.0.0"
[org.webjars.npm/mkdirp-infer-owner "2.0.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : chownr jar [2.0.0,3)
org.webjars.npm : infer-owner jar [1.0.4,2)
org.webjars.npm : mkdirp jar [1.0.3,2)

Project Modules

There are no modules declared in this project.

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.

Versions

Version
2.0.0