Showing 1-20 of 2,447,161 packages
Get the visual width of a string - the number of columns required to display it
Get the visual width of the widest line in a string - the number of columns required to display it
Determine the East Asian Width of a Unicode character
hast utility to check if a node is inter-element whitespace
hast utility to check if a node is a (certain) element
Check whether a given string matches the `PotentialCustomElementName` production as defined in the HTML Standard.
get dimensions of any image file
Create an array by repeating the given value n times.
List of HTML void tag names
Look up HTML tag names via HTML Element constructors, and vice versa.
hast utility to check if a node has a property
Polyfills the ResizeObserver API and supports box size options from the latest spec
List of known MathML tag names
Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).
A function that given input element, updates its width to fit its content.
A little helper for handling strings containing zero width control characters, ANSI styling, whitespaces, newlines, 💩, etc.
Simplified JS/TS implementation of wcswidth() written by Markus Kuhn in C
Get the size of an element in pixels, including margins
A tool to get browser's scrollbars width.
Truncate a string to a specific width in the terminal