Defines what character spaces (codepoints U+0020 and U+00A0 after compatibility normalization) are converted to. By default, this is -
(dash). To preserve spaces as is, set this to (note that non-breaking spaces will be converted to normal spaces). Set to an empty string or null to remove all spaces entirely.
Note that all other spacing characters (including newlines, tabs, etc) are removed.
Keep emoji characters. Default value: false
. This has no effect in basic
mode, as that doesn't remove characters..
Lowercase the output string. Default value: false
Mode of operation:
In all modes, control characters and whitespaces are removed; spaces are converted to the character specified in spaceConversion
Default value: basic
Additional characters to preserve. By default, this is -_.
(dash, underscore and dot). This is ignored when in basic
mode.
Remove numbers. Default value: false
. This has no effect in basic
mode, as that never removes numbers.
Generated using TypeDoc
Options for normalizer