trim-repeated (npm): Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Keywords: condense|collapse|compact|consecutive|repeated|string|str|trim|remove|strip|character|char