Comparing version 0.3.1 to 0.3.2
@@ -6,3 +6,3 @@ { | ||
"homepage" : "https://github.com/millermedeiros/mdoc.git", | ||
"version" : "0.3.1", | ||
"version" : "0.3.2", | ||
"author" : { | ||
@@ -9,0 +9,0 @@ "name" : "Miller Medeiros", |
@@ -0,0 +0,0 @@ // ============================ |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ |
var fs = require('fs'), | ||
path = require('path'); | ||
path = require('path'), | ||
wrench = require('wrench'); | ||
@@ -35,2 +36,4 @@ | ||
inputFiles.forEach(function(fname){ | ||
fname = normalizePath(fname); | ||
var ext = path.extname(fname), | ||
@@ -41,3 +44,3 @@ fileDir = path.dirname(fname).replace(o.inputDir, ''); | ||
input : fname, | ||
output : path.join(o.outputDir, fileDir, path.basename(fname, ext) + o.outputExt) | ||
output : normalizePath( path.join(o.outputDir, fileDir, path.basename(fname, ext) + o.outputExt) ) | ||
}); | ||
@@ -49,3 +52,8 @@ }); | ||
function normalizePath(path){ | ||
// windows to unix | ||
return path.replace(/\\+/g, '/'); | ||
} | ||
exports.readDirRecursive = function(baseDir, include, exclude){ | ||
@@ -94,16 +102,3 @@ var files = [], | ||
exports.mkdirs = function(dir, mode){ | ||
mode = mode || '0777'; | ||
var paths = dir.split('/'), | ||
prev = '', | ||
cur; | ||
for (var i = 0, n = paths.length; i < n; i += 1) { | ||
cur = path.join(prev, paths[i]); | ||
if(! path.existsSync(cur) ){ | ||
fs.mkdirSync(cur, mode); | ||
} | ||
prev = cur; | ||
} | ||
wrench.mkdirSyncRecursive(dir, mode || '0777'); | ||
}; |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
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
283987
133
47
4384
1