Skip to main content
Module

x/momentum/common/helpers.ts

Momentum is an open-source framework for building server-side Deno applications in TypeScript. It provides the paradigms and design patterns to guide developers to create robust, scalable, and enterprise-grade applications.
Latest
File
export function trimSlashes(path?: string) { return path?.replace(/^[\/]+|[\/]+$/g, "");}
export function trimTrailingSlashes(path?: string) { return path?.replace(/^|[\/]+$/g, "");}