trim-newlines

Trim newlines from the start and/or end of a string
v5.0.0 URL: https://unpkg.com/trim-newlines@5.0.0/index.js
OpenBrowse Files
trimnewlinenewlineslinebreaklfcrlfleftrightstartendstringremovedeletestrip

trim-repeated

Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
v2.0.0 URL: https://unpkg.com/trim-repeated@2.0.0/index.js
OpenBrowse Files
condensecollapsecompactconsecutiverepeatedstringstrtrimremovestripcharacterchar

trim-off-newlines

Similar to String#trim() but removes only newlines
v1.0.3 URL: https://unpkg.com/trim-off-newlines@1.0.3/index.js
OpenBrowse Files
trimnewlinesnew-linesnewlinenew-linesstringstrutilutilsutilitywhitespacespaceremovedelete

string-trim-spaces-only

Like String.trim() but you can choose granularly what to trim
v5.0.12 URL: https://unpkg.com/string-trim-spaces-only@5.0.12/dist/string-trim-spaces-only.esm.js
OpenBrowse Files
charactersendfrontjustonlyspacespacesstringtexttrim

@ungap/trim

An trim polyfill for legacy browsers.
v0.2.0 URL: https://unpkg.com/@ungap/trim@0.2.0/min.js
OpenBrowse Files
stringtrimpolyfilllegacyungap