UNPKG

a2r

Version:
13 lines (12 loc) 704 B
/** * Clean text * @param {string} str Source string to clean * @param {boolean} toLower Transform to lower * @param {boolean} removeNonAlphanumeric Remove any non-alphanumeric or non-space character * @param {boolean} removeSpaces Remove spaces * @param {boolean} turnToCamelCase Turn string to camel case * @param {string} camelCaseSeparator Separator for camel case conversion * @param {string} spaceSubstitute If provided, will be used to replace spaces */ declare const cleanText: (str: string, toLower?: boolean, removeNonAlphanumeric?: boolean, removeSpaces?: boolean, turnToCamelCase?: boolean, camelCaseSeparator?: string, spaceSubstitute?: string) => string; export default cleanText;