@ende/text/unstable-trim-by

ende add jsr:@ende/text

Version 2026.10.15 on JSR.

Exports

  • trimBy — Trims all instances of the specified pattern at the start and end of the string.
  • trimEndBy — Trims all instances of the specified pattern at the end of the string.
  • TrimPattern — A pattern that can be used to trim characters from an input string. - If `string`, trim all substrings equal to the string. - If `Iterable<string>`, trim all substrings equal to any member. - If `RegExp`, trim all substrings that match the regex.
  • trimStartBy — Trims all instances of the specified pattern at the start of the string.