(filepath)
| 5 | , crypto = require('crypto'); |
| 6 | |
| 7 | function tempFilePath(filepath) { |
| 8 | return path.join(filepath || tmpdir, crypto.randomBytes(16).toString('hex')); |
| 9 | } |
| 10 | |
| 11 | exports.writeTempFile = function(str) { |
| 12 | var isWin = /^win/i.test(os.platform()); |