Gathering detailed insights and metrics for make-dir
Gathering detailed insights and metrics for make-dir
Gathering detailed insights and metrics for make-dir
Gathering detailed insights and metrics for make-dir
Make a directory and its parents if needed - Think `mkdir -p`
npm install make-dir
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.7
Supply Chain
99.5
Quality
75.7
Maintenance
100
Vulnerability
100
License
JavaScript (93.47%)
TypeScript (6.53%)
Total Downloads
15,250,892,364
Last Day
4,547,849
Last Week
83,310,288
Last Month
360,603,154
Last Year
3,771,103,465
MIT License
479 Stars
57 Commits
22 Forks
10 Watchers
1 Branches
11 Contributors
Updated on May 11, 2025
Minified
Minified + Gzipped
Latest Version
5.0.0
Package Id
make-dir@5.0.0
Unpacked Size
9.28 kB
Size
3.35 kB
File Count
5
NPM Version
10.6.0
Node Version
20.12.2
Published on
May 02, 2024
Cumulative downloads
Total Downloads
Last Day
-8.9%
4,547,849
Compared to previous day
Last Week
-8%
83,310,288
Compared to previous week
Last Month
3.4%
360,603,154
Compared to previous month
Last Year
16.5%
3,771,103,465
Compared to previous year
8
Make a directory and its parents if needed - Think
mkdir -p
[!TIP] You probably want the built-in
fsPromises.mkdir('…', {recursive: true})
instead.
fsPromises.mkdir('…', {recursive: true})
fs
implementation.mkdirp
mkdirp
issues: #96 #70 #66fs.mkdir/mkdirSync
recursive
option in Node.js unless overridden1npm install make-dir
1$ pwd 2/Users/sindresorhus/fun 3$ tree 4.
1import {makeDirectory} from 'make-dir'; 2 3const path = await makeDirectory('unicorn/rainbow/cake'); 4 5console.log(path); 6//=> '/Users/sindresorhus/fun/unicorn/rainbow/cake'
1$ tree
2.
3└── unicorn
4 └── rainbow
5 └── cake
Multiple directories:
1import {makeDirectory} from 'make-dir'; 2 3const paths = await Promise.all([ 4 makeDirectory('unicorn/rainbow'), 5 makeDirectory('foo/bar') 6]); 7 8console.log(paths); 9/* 10[ 11 '/Users/sindresorhus/fun/unicorn/rainbow', 12 '/Users/sindresorhus/fun/foo/bar' 13] 14*/
Returns a Promise
for the path to the created directory.
Returns the path to the created directory.
Type: string
The directory to create.
Type: object
Type: integer
Default: 0o777
The directory permissions.
Type: object
Default: import fs from 'node:fs'
Use a custom fs
implementation. For example graceful-fs
.
Using a custom fs
implementation will block the use of the native recursive
option if fs.mkdir
or fs.mkdirSync
is not the native function.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 11/30 approved changesets -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-09
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More