Showing 1-20 of 553,490 packages
Modify strings, generate sourcemaps
TypeScript package which smartly trims and strips indentation from multi-line strings
LZ-based compression algorithm
Port of C's wcwidth() and wcswidth()
here-document on node.js
A string tag that strips indentation from multi-line strings. ⬅️
fast string hashing function
Strip HTML tags from strings. No parser, accepts mixed sources.
Remove leading indentation from ES6 template literals.
Get the visual width of a string - the number of columns required to display it
Escape RegExp special characters
Indent each line in a string
Wordwrap a string with ANSI escape codes
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Detect the indentation of code
An ES6 string tag that strips indentation from multi-line strings
Collapse the leading and trailing whitespace of a string
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Slice a string with ANSI escape codes
Matches strings against configurable strings, globs, regular expressions, and/or functions