feat: new path util package

This commit is contained in:
2025-09-16 23:17:19 +00:00
parent 68ca8cbccd
commit 691798c56d
5 changed files with 95 additions and 0 deletions

9
packages/path/index.ts Normal file
View File

@@ -0,0 +1,9 @@
export const PATH_SEPARATOR = "/"
export function baseName(path: string): string {
return path.split(PATH_SEPARATOR).pop() ?? ""
}
export function joinPath(...paths: string[]): string {
return paths.join(PATH_SEPARATOR)
}