Socket
Socket
Sign inDemoInstall

mkdir-recursive

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mkdir-recursive - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

6

History.md

@@ -0,1 +1,7 @@

v0.2.2 / 2016-07-12
==================
* Test `node`@6
* Fix absolute path on Windows
v0.2.1 / 2015-11-09

@@ -2,0 +8,0 @@ ==================

16

index.js

@@ -44,5 +44,7 @@ 'use strict';

var chunk;
if (path.isAbsolute(root) === true) {
chunks.shift(); // remove "/"
chunk = path.sep; // build from absolute path
if (path.isAbsolute(root) === true) { // build from absolute path
chunk = chunks.shift(); // remove "/" or C:/
if (!chunk) { // add "/"
chunk = path.sep;
}
} else {

@@ -73,5 +75,7 @@ chunk = path.resolve(); // build with relative path

var chunk;
if (path.isAbsolute(root) === true) {
chunks.shift(); // remove "/"
chunk = path.sep; // build from absolute path
if (path.isAbsolute(root) === true) { // build from absolute path
chunk = chunks.shift(); // remove "/" or C:/
if (!chunk) { // add "/"
chunk = path.sep;
}
} else {

@@ -78,0 +82,0 @@ chunk = path.resolve(); // build with relative path

{
"version": "0.2.1",
"version": "0.2.2",
"name": "mkdir-recursive",

@@ -30,3 +30,3 @@ "description": "make/remove (asynchronous/synchronous) directories recursively",

"coveralls": "~2.11",
"mocha": "~2.3",
"mocha": "~2.5",
"istanbul": "~0.4"

@@ -33,0 +33,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc