UNPKG

@withstudiocms/internal_helpers

Version:

Internal helper utilities for StudioCMS

10 lines (9 loc) 435 B
/** * Converts a given string into a "safe" string by replacing all non-alphanumeric * characters with underscores, trimming leading and trailing underscores, and converting * the result to lowercase. * * @param string - The input string to be converted. * @returns The sanitized, lowercase string with non-alphanumeric characters replaced by underscores. */ export declare function convertToSafeString(string: string): string;