Get the visual width of a string - the number of columns required to display it
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
Modify strings, generate sourcemaps
mdast utility to get the plain text content of a node
Utility to parse a string bytes to bytes and vice-versa
A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.
Get the visual width of the widest line in a string - the number of columns required to display it
Require module from string
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.
Resolve the path of a module like `require.resolve()` but from a given path
Get the command from a shebang
A fast function for calculating the visual width of a string once printed to the terminal.
A minimal UTF8 implementation for number arrays.
Returns true if a string has an extglob.
CLI arguments parser. Native port of python's argparse.
Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible
A minimal base64 implementation for number arrays.
align-text with ANSI support for CLIs
Merge multiple streams into one stream in sequence or parallel.
JavaScript sprintf implementation
Convert a string of words to a JavaScript identifier