mkpath

WebJar for mkpath

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

mkpath
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

mkpath
WebJar for mkpath
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jrajav/mkpath

Download mkpath

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

mkpath

Make all directories in a path, like mkdir -p.

How to use

var mkpath = require('mkpath');

mkpath('red/green/violet', function (err) {
    if (err) throw err;
    console.log('Directory structure red/green/violet created');
});

mkpath.sync('/tmp/blue/orange', 0700);

mkpath(path, [mode = 0777 & (~process.umask()),] [callback])

Create all directories that don't exist in path with permissions mode. When finished, callback(err) fires with the error, if any.

mkpath.sync(path, [mode = 0777 & (~process.umask())]);

Synchronous version of the same. Throws error, if any.

License

This software is released under the MIT license.

Versions

Version
0.1.0