Socket
Socket
Sign inDemoInstall

make-dir

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.3.0

8

index.js

@@ -28,6 +28,8 @@ 'use strict';

opts = Object.assign({}, defaults, opts);
const fsP = pify(opts.fs);
const mkdir = pify(opts.fs.mkdir);
const stat = pify(opts.fs.stat);
const make = pth => {
return fsP.mkdir(pth, opts.mode)
return mkdir(pth, opts.mode)
.then(() => pth)

@@ -43,3 +45,3 @@ .catch(err => {

return fsP.stat(pth)
return stat(pth)
.then(stats => stats.isDirectory() ? pth : Promise.reject())

@@ -46,0 +48,0 @@ .catch(() => {

{
"name": "make-dir",
"version": "1.2.0",
"version": "1.3.0",
"description": "Make a directory and its parents if needed - Think `mkdir -p`",

@@ -52,4 +52,4 @@ "license": "MIT",

"tempy": "^0.2.1",
"xo": "*"
"xo": "^0.20.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc