Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 18, 2024 via pnpm
Package summary
Share
0
issues
2
licenses
1
MIT
1
ISC
Package created
9 May 2017
Version published
23 Jun 2023
Maintainers
1
Total deps
2
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
make-dir@4.0.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
semver@7.6.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of make-dir 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
semver7.6.293.19 kBISC
prod

Visualizations

Frequently Asked Questions

What does make-dir do?

Make-dir is a popular npm package that allows users to create a new directory and its parent directories if necessary. This module is particularly beneficial since it resembles the mkdir -p command in its functionality and offers improvements over the functionality of mkdirp. Advantages of make-dir include a Promise API that is ready for Async/await, better issue resolution, comprehensive test coverage, compatibility across macOS, Linux, and Windows, proactive maintenance, and absence of bundled CLI. It uses the native fs.mkdir/mkdirSync recursive option in Node.js version >=10.12.0, barring exceptions.

How do you use make-dir?

To use the make-dir npm package, you first need to install it in the project using the npm install make-dir command. Once installed, it can be imported into your JavaScript file using const makeDir = require('make-dir');. The makeDir function can be called in an asynchronous function to create directories. For single directory creation the code would look something like this:

const makeDir = require('make-dir');

(async () => {
	const path = await makeDir('unicorn/rainbow/cake');

	console.log(path);
})();

And for creating multiple directories, the code example:

const makeDir = require('make-dir');

(async () => {
	const paths = await Promise.all([
		makeDir('unicorn/rainbow'),
		makeDir('foo/bar')
	]);

	console.log(paths);
})();

The aforementioned examples will generate the directories under the given paths.

Where are the make-dir docs?

The detailed make-dir package documentation can be found in the readme file in its GitHub repository. The documentation provides comprehensive information about how to use the package, including its API, installation, and example usage code.