mirror of
https://github.com/morluto/rea.git
synced 2026-11-10 08:47:00 +00:00
8 lines
350 B
TypeScript
8 lines
350 B
TypeScript
import { randomUUID } from "node:crypto";
|
|
import { tmpdir } from "node:os";
|
|
import { absoluteCallerPath } from "../../filesystem/callerPath.js";
|
|
|
|
/** Choose a fresh temporary destination for an artifact extraction. */
|
|
export const createArtifactExtractionDestination = (): string =>
|
|
absoluteCallerPath(`${tmpdir()}/rea-extracted-${randomUUID()}`);
|