Showing 1-20 of 1,150,201 packages
Get the visual width of a string - the number of columns required to display it
A fast function for calculating the visual width of a string once printed to the terminal.
calculates width of given string
Get the visual width of a string - the number of columns required to display it
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Wordwrap a string with ANSI escape codes
Get the visual width of the widest line in a string - the number of columns required to display it
Modify strings, generate sourcemaps
mdast utility to get the plain text content of a node
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Repeat the given string n times. Fastest implementation for repeating a string.
Returns true if a string has an extglob.
Matches strings against configurable strings, globs, regular expressions, and/or functions
Slice a string with ANSI escape codes
Get the visual width of a string - the number of columns required to display it
Port of C's wcwidth() and wcswidth()
Get width of a Unicode string in fixed-width display cells, accounting for combining characters, emojis, flags, Hangul, East Asian Width, default ignorables, and a few more.
A string tag that strips indentation from multi-line strings. ⬅️
Querystringify - Small, simple but powerful query string parser.