🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

mkdir-async-recursive

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mkdir-async-recursive - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+3
-2
dist/index.cjs

@@ -45,7 +45,8 @@ 'use strict';

}
const dirs = path.split("/");
const sep = path.includes("/") ? "/" : nodePath__default.sep;
const dirs = path.split(sep);
let dirPath = "";
const result = [];
for (const dir of dirs) {
dirPath += `${dir}/`;
dirPath += `${dir}${sep}`;
await mkdir(dirPath, mode);

@@ -52,0 +53,0 @@ }

@@ -38,7 +38,8 @@ import fs from 'node:fs';

}
const dirs = path.split("/");
const sep = path.includes("/") ? "/" : nodePath.sep;
const dirs = path.split(sep);
let dirPath = "";
const result = [];
for (const dir of dirs) {
dirPath += `${dir}/`;
dirPath += `${dir}${sep}`;
await mkdir(dirPath, mode);

@@ -45,0 +46,0 @@ }

+4
-4
{
"name": "mkdir-async-recursive",
"version": "1.0.0",
"version": "1.0.1",
"description": "Asynchronously and recursively creates a directory. Returns undefined or the first directory path created.",

@@ -51,5 +51,5 @@ "type": "module",

"devDependencies": {
"@types/node": "^22.9.0",
"prettier": "^3.3.3",
"typescript": "^5.6.3",
"@types/node": "^22.10.0",
"prettier": "^3.4.1",
"typescript": "^5.7.2",
"unbuild": "^2.0.0"

@@ -56,0 +56,0 @@ },