Portfolio/src/composables/useUtils.ts
Matthew L McPeak 638d6533ff
All checks were successful
ci / build (push) Successful in 15s
ci / publish (push) Successful in 12s
Inital Commit
2026-06-19 06:50:14 -04:00

11 lines
198 B
TypeScript

export const useUtils = () => {
const normalizePath = (path: string) => {
return path.endsWith("/") ? path.slice(0, -1) : path;
};
return {
url: {
normalizePath,
},
};
};