Comparing version 0.8.0 to 0.8.1
{ | ||
"name": "nyks", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "nodejs exupery style", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -52,25 +52,5 @@ | ||
fs.tmppath = require('../../fs/tmppath'); | ||
fs.mkdirpSync = require('../../fs/mkdirpSync'); | ||
fs.tmppath = function(ext){ | ||
ext = ext || "tmp"; | ||
var abc = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | ||
var rand = (abc + abc + abc ).split("").shuffle().slice(0,8).join(""); | ||
var fname = ext + "-" + rand + "." + ext; | ||
var file_path = os.tmpdir() + "/" +fname; | ||
if(fs.existsSync(file_path)) | ||
return fs.tmppath(ext); | ||
return file_path; | ||
} | ||
fs.mkdirpSync = function(file_path){ | ||
if( fs.existsSync(file_path) ) | ||
return file_path; | ||
fs.mkdirpSync(path.dirname(file_path)); | ||
fs.mkdirSync(file_path); | ||
return file_path; | ||
} | ||
fs.deleteFolderRecursive = function(file_path) { | ||
@@ -77,0 +57,0 @@ var files = []; |
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
22031
26
563
9