MCPcopy
hub / github.com/pstadler/flightplan / tempFilePath

Function tempFilePath

lib/utils/index.js:7–9  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

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

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected