Trims text to a certain number of characters. You can define either to break-word to maintain the number of characters limit or characters limit may decrease to avoid breaking words.
Trim characters from string
Trim characters from a string
Remove spaces and tabs around line-breaks
Slugifies a String
Trim newlines from the start and/or end of a string
Trim whitespace characters from the beginning and end of a string.
Trim whitespace characters from the beginning and end of a string.
ES5 spec-compliant shim for String.prototype.trim
Remove final line feeds from a string
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Spacetrim is trimming string from all 4 sides.
Similar to String#trim() but removes only newlines
Removes whitespace and line-terminator characters from buffer edges
Like String.trim() but you can choose granularly what to trim
A tiny library for trimming whitespace from a canvas element
Fastest HTML entities encode/decode library.
Get the visual width of a string - the number of columns required to display it
Trim the whitespace within an array of GLSL tokens
A JavaScript library that breaks strings into their individual user-perceived characters (including emojis!)
A little helper for handling strings containing zero width control characters, ANSI styling, whitespaces, newlines, 💩, etc.
TailwindCSS leading-trim utility classes.
The Lodash method `_.trim` exported as a module.
A wide-character aware text alignment function for use on the console or with fixed width fonts.
This gem provides methods for trimming spaces.
HtmlClipping generates excerpts from an HTML page that has a link pointing to a particular URI. It removes most HTML markup, bolds the link text, and trims the resulting text to a fixed number of characters. I developed it to help me track referers to my website, though I suppose it might have other uses.
Diff and patch tables
Diff and patch tables