We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent ca3ce4e commit 08135aaCopy full SHA for 08135aa
package.json
@@ -24,7 +24,8 @@
24
"eslint-plugin-standard": "2.1.1",
25
"istanbul": "0.4.5",
26
"mocha": "2.5.3",
27
- "supertest": "1.1.0"
+ "supertest": "1.1.0",
28
+ "temp-path": "1.0.0"
29
},
30
"files": [
31
"LICENSE",
test/support/tempIcon.js
@@ -1,9 +1,7 @@
1
2
var crypto = require('crypto')
3
var fs = require('fs')
4
-var os = require('os')
5
-var path = require('path')
6
-var tmpdir = os.tmpdir || os.tmpDir
+var tempPath = require('temp-path')
7
8
module.exports = TempIcon
9
@@ -28,8 +26,3 @@ TempIcon.prototype.writeSync = function writeSync () {
this.exists = true
}
-
32
-function tempPath () {
33
- var fileName = 'favicon-' + (Date.now() + Math.random()) + '.ico'
34
- return path.join(tmpdir(), fileName)
35
-}
0 commit comments