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.
Utility to parse a string bytes to bytes and vice-versa
Create an ArrayBuffer instance from a Data URI string
Port of C's wcwidth() and wcswidth()
Promisifies all the selected functions in an object
Get the command from a shebang
return the github url from a package.json file
Returns true if a string has an extglob.
extend like a boss
JSON parse & stringify that supports binary via bops & base64
Generate a unique random string
Resolve the path of a module like `require.resolve()` but from a given path
Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
borderless text tables with alignment
Streaming text decoder that preserves multibyte Unicode characters
compare two semver version strings, returning -1, 0, or 1
Parse Postgres interval columns
JSON.parse with bigints support
Run a function exactly one time
Trim newlines from the start and/or end of a string
A library of cross-platform tested terminal/console command strings for doing things like color and cursor positioning. This is a subset of both ansi and vt100. All control codes included work on both Windows & Unix-like OSes, except where noted.
Unopinionated, no-frills CLI argument parser
A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.