Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
This package has been deprecated with the following message: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
Generated on Apr 17, 2024 via pnpm

mkdirp 0.3.3

Recursively mkdir, like `mkdir -p`
Package summary
Share
3
issues
2
high severity
license
1
meta
1
1
low severity
license
1
1
license
1
MIT/X11
Package created
6 Jan 2011
Version published
5 Jun 2012
Maintainers
1
Total deps
1
Direct deps
0
License
MIT/X11

Issues

3

2 high severity issues

high
Recommendation: Validate that the package complies with your license policy
via: mkdirp@0.3.3
via: mkdirp@0.3.3
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: mkdirp@0.3.3
Collapse
Expand

Licenses

MIT/X11

Invalid
Not OSI Approved
1 Packages, Including:
mkdirp@0.3.3
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

0
All Dependencies CSV
β“˜ This is a list of mkdirp 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does mkdirp do?

The "mkdirp" package is used in Node.js to recursively create new directories, similar to how the mkdir -p function works in UNIX systems. This is a hybrid module, meaning you can import or require it. As a modern API, it aims to have zero bugs though acknowledges that a few may be missed.

How do you use mkdirp?

To use the "mkdirp" package, you first need to either import it using import { mkdirp } from 'mkdirp' or require it using const { mkdirp } = require('mkdirp'). The returned value is a Promise that resolves to the first directory created. For instance:

import { mkdirp } from 'mkdirp'

// return value is a Promise resolving to the first directory created
mkdirp('/tmp/foo/bar/baz').then(made =>
  console.log(`made directories, starting with ${made}`)
)

If you prefer not to use promises, the .sync function is available:

import { mkdirp } from 'mkdirp'

// return value is the first directory created
const made = mkdirp.sync('/tmp/foo/bar/baz')
console.log(`made directories, starting with ${made}`)

This ensures that the directories /tmp/foo/bar/baz now exist.

Where are the mkdirp docs?

The documentation for "mkdirp" can be found within the README of the package's GitHub page. This page includes in-depth explanations of all the methods provided by the package, example usage codes, CLI details, and tips for choosing a recursive mkdir implementation. The URL for the package's GitHub page is: https://github.com/isaacs/node-mkdirp.