Comparing version 0.0.14 to 0.0.15
@@ -13,3 +13,5 @@ /*! | ||
path = require('path'), | ||
os = require('os'), | ||
exists = fs.exists || path.exists, | ||
tmpDir = os.tmpDir || _getTMPDir, | ||
_c = require('constants'); | ||
@@ -22,3 +24,3 @@ | ||
// store the actual TMP directory | ||
_TMP = _getTMPDir(), | ||
_TMP = tmpDir(), | ||
@@ -25,0 +27,0 @@ // the random characters to choose from |
{ | ||
"name": "tmp", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "Temporary file and directory creator", | ||
@@ -5,0 +5,0 @@ "author": "KARASZI István <github@spam.raszi.hu> (http://raszi.hu/)", |
@@ -137,3 +137,3 @@ # Tmp | ||
* `mode`: the file mode to create with it fallbacks to `0600` on file creation and `0700` on directory creation | ||
* `mode`: the file mode to create with, it fallbacks to `0600` on file creation and `0700` on directory creation | ||
* `prefix`: the optional prefix, fallbacks to `tmp-` if not provided | ||
@@ -143,4 +143,4 @@ * `postfix`: the optional postfix, fallbacks to `.tmp` on file creation | ||
* `dir`: the optional temporary directory, fallbacks to system default (guesses from environment) | ||
* `tries`: how many times should the function tries to get a unique filename before giving up, default `3` | ||
* `keep`: signals that the temporary file or directory should not be deleted on exit, default is to delete | ||
* `tries`: how many times should the function try to get a unique filename before giving up, default `3` | ||
* `keep`: signals that the temporary file or directory should not be deleted on exit, default is `false`, means delete | ||
@@ -147,0 +147,0 @@ [1]: http://nodejs.org/ |
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
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
20920
519
0