Showing 1-20 of 1,147,064 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
Get the visual width of a string - the number of columns required to display it
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.
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Get the visual width of the widest line in a string - the number of columns required to display it
Wordwrap a string with ANSI escape codes
Utility to parse a string bytes to bytes and vice-versa
mdast utility to get the plain text content of a node
Require module from string
Repeat the given string n times. Fastest implementation for repeating a string.
Modify strings, generate sourcemaps
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
align-text with ANSI support for CLIs
Resolve the path of a module like `require.resolve()` but from a given path
Get the command from a shebang
JavaScript sprintf implementation