snyk-docker-plugin
Version:
Snyk CLI docker plugin
14 lines • 472 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fullImageSavePath = fullImageSavePath;
const crypto = require("crypto");
const os = require("os");
const path = require("path");
function fullImageSavePath(imageSavePath) {
let imagePath = os.tmpdir();
if (imageSavePath) {
imagePath = path.normalize(imageSavePath);
}
return path.join(imagePath, crypto.randomUUID());
}
//# sourceMappingURL=image-save-path.js.map