Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

177 B
Raw Blame
export const reverseTruncate = (text: string, maxLength = 42) => {
  if (text.length < maxLength) return text;

  return `...${text.substring(text.length - maxLength + 3)}`;
};