UNPKG

snyk-docker-plugin

Version:
13 lines (10 loc) 330 B
import * as crypto from "crypto"; import * as os from "os"; import * as path from "path"; export function fullImageSavePath(imageSavePath: string | undefined): string { let imagePath = os.tmpdir(); if (imageSavePath) { imagePath = path.normalize(imageSavePath); } return path.join(imagePath, crypto.randomUUID()); }