cmd-helper
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -88,3 +88,3 @@ # iduri | ||
## iduri.join(base, uri) | ||
## iduri.join(path1 [,path2 [,...]]) | ||
@@ -91,0 +91,0 @@ The same as `path.join`, but dir separators use posix mode. |
@@ -18,3 +18,4 @@ /* | ||
VERSION_RE = /^(\d+\.){2}\d+$/, // version | ||
RELATIVE_RE = /^\.{1,2}[\\/]/; // relative path | ||
RELATIVE_RE = /^\.{1,2}[\\/]/, // relative path | ||
slice = Array.prototype.slice; // array slice | ||
@@ -142,4 +143,5 @@ // micro template engine | ||
// join | ||
function join(base, uri){ | ||
return normalize(base + path.sep + uri); | ||
function join(){ | ||
var paths = slice.apply(arguments); | ||
return normalize(paths.join(path.sep)); | ||
} | ||
@@ -146,0 +148,0 @@ exports.join = join; |
{ | ||
"name": "cmd-helper", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33927
774