string-collapse-white-space 10.0.1

  • TrimDon’t trim lines (excluding string front/end whitespace) (opts.trimLines === truefalse)
  • TrimDon’t trim front (opts.trimStart === truefalse)
  • TrimDon’t trim end (opts.trimEnd === truefalse)
  • RemoveDon’t remove empty lines (opts.removeEmptyLines === truefalse)
  • EnforceDon’t enforce space-only (opts.enforceSpacesOnly === truefalse)

Put a string

Program returns a string

and Ranges ???

TIP: the opens in a new tab, a comprehensive text-preparation tool, uses this program

PS. See the source of this page on GitHub opens in a new tab. Vue.js is driving the UI; both Vue and this program are coming as <script>s from jsDelivr.