A minimal UTF8 implementation for number arrays.
LZ-based compression algorithm
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Strip leading whitespace from each line in a string
Wordwrap a string with ANSI escape codes
Native Access to MacOS FSEvents
Matches strings against configurable strings, globs, regular expressions, and/or functions
A minimal base64 implementation for number arrays.
CLI arguments parser. Native port of python's argparse.
A minimal path module to resolve Unix, Windows and URL paths alike.
Repeat the given string n times. Fastest implementation for repeating a string.
Generate a unique character string suitible for use in files and URLs.
Require module from string
Slice a string with ANSI escape codes
type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.
A small chunk segmenter.
Utility to parse a string bytes to bytes and vice-versa
Strip redundant indentation and indent the string
Create an ArrayBuffer instance from a Data URI string
Get the command from a shebang
Promisifies all the selected functions in an object
return the github url from a package.json file
A high-performance wrapper around `Intl.Segmenter` for efficient text segmentation. This class resolves memory handling issues seen with large strings and can enhance performance by 50-500x. Only ~70 loc (with comments) and no dependencies.
Port of C's wcwidth() and wcswidth()