Generate a unique random string
JSON parse & stringify that supports binary via bops & base64
Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
Resolve the path of a module like `require.resolve()` but from a given path
compare two semver version strings, returning -1, 0, or 1
Parse Postgres interval columns
JSON.parse with bigints support
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.
Trim newlines from the start and/or end of a string
Run a function exactly one time
Streaming text decoder that preserves multibyte Unicode characters
A minimalistic code generation utility.
Buffer-keyed map for javascript
simple persistent cookiejar system
Unopinionated, no-frills CLI argument parser
Polyfill of future proposal for `util.parseArgs()`
Blind pairing using Hyperswarm
Easy way to split a string on a given character unless it's quoted or escaped.
process.nextTick but always with args
A query string encoder and decoder with full JSON compatibility, no wasteful repetition of keys, and minimal percent-encoding bloat.
A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.
Caseless object set/get/has, very useful when working with HTTP headers.
Fetches the contents of a file accross node and browsers.
Utility functions for converting to and from URLs that encode query string data into URL paths