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.
Encode and decode [WTF-8](https://simonsapin.github.io/wtf-8/) with a similar API to [TextEncoder](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder) and [TextDecoder](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder).
Quick wrapper that finds TextDecoder in your runtime, or uses an adequate polyfill
hildjj's lint rules
Small utils useful across all of my projects.
Get the visual width of a string - the number of columns required to display it
Runtime code for unicode-trie files.
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Unicode line-breaking algorithm from UAX #14
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
Download, cache, and parse files from the Unicode Character Database (UCD).
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
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Require module from string
Wrap lines using the Unicode Line Breaking algorithm from UAX #14
A thin wrapper around [Pino](https://getpino.io/#/) to insulate multiple projects from the dependency, and to normalize a common pattern in those projects.
Repeat the given string n times. Fastest implementation for repeating a string.
Builder code for unicode tries
Resolve the path of a module like `require.resolve()` but from a given path
Testing-only Certificate Authority (CA) for your local development environment ONLY. This is in no way suitable for production of any kind.