trim-repeated
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Safely remove repeating whitespace from HTML text.
Remove leading, trailing, and repeated whitespace from a string
Condense all string whitespace + options to preserve specific whitespace characters.
Remove keys with empty values from an object
Remove extra newlines in a string.
Condenses JSON by shortening literals