Files
release-action/src/PathExpander.ts
T
2025-12-02 08:29:48 -05:00

7 lines
131 B
TypeScript

import os from "os"
export function expandTilde(path: string): string {
return path.replace(/^~(?=$|\/|\\)/, os.homedir())
}