Normalize extension
Extends String with a function to normalize it.
- on
Methods
-
normalize(
NormalizationSettings settings) → String -
Normalizes a string following the given normalization
settings
. -
normalizeCamelCase(
) → String - Transforms a string in camel case to normal case.
-
normalizeCaseType(
) → String - Normalizes the case whether it is snake_case or camelCase. Conserves the case (upper or lower).
-
normalizeSnakeCase(
) → String - Transforms a string in snake case to normal case.
-
removeDiacritics(
) → String -
Removes the diacritics of a string thanks to the
diacritic
package.