export const stripEndSlash = (path: string) => path[path.length - 1] === '/' ? path.slice(0, path.length - 1) : path;