Packages by sindresorhus
Packages maintained by sindresorhus.
65 packages
A collection of essential TypeScript types
Escape RegExp special characters
Run multiple promise-returning & async functions with limited concurrency
Get the PATH environment variable key cross-platform
Get the first fulfilled promise that satisfies the provided testing function
Check if argv has a specific flag
Get callsites from the V8 stack trace API
Open stuff like URLs, files, executables. Cross-platform.
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Merge objects using their property descriptors
Check if a value is a plain object
Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
Indent each line in a string
Determine the East Asian Width of a Unicode character
Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow
Get the default browser
Utilities for working with Windows Subsystem for Linux (WSL)
CLI app helper
Detect whether a terminal supports hyperlinks
Some useful utilities I often need
Parse yes/no like values
Parse and stringify URL query strings
Create clickable links in the terminal
Get an available port
Filter object keys and values into a new object
Split a string on the first occurance of a given separator
Resolve the path of a module like `require.resolve()` but from a given path
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Convert Windows backslash paths to slash paths
Detect the dominant newline character of a string