Packages by sindresorhus
Packages maintained by sindresorhus.
65 packages
Strip UTF-8 byte order mark (BOM) from a string
An error subclass for wrapping non-error values
Regular expression for matching a shebang line
Find a file or directory by walking up parent directories
Check if the process is running inside a container (Docker/Podman)
Find a file or directory by walking up parent directories — Zero dependencies
Parse JSON with more helpful errors
Check if the process is running inside a Docker container
Check if a filename is safe to use in a path join operation
Elegant terminal spinner
Check if the process is running in an SSH session
Define a lazily evaluated property on an object
Let a globally installed package use a locally installed version of itself if available
Strip redundant indentation and indent the string
Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari
Strip leading whitespace from each line in a string
Easily handle defaults for your options
Import a module while bypassing the cache
Get the visual width of a string - the number of columns required to display it
Map over promises concurrently
Find the root directory of a Node.js project or npm package
Detect the dominant newline character of a string
Measure the difference between two strings using the Levenshtein distance algorithm
Strip comments from JSON. Lets you use comments in your JSON files!
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Check if something is a generator function
Unique tag for use in the type-fest Tagged type
Discard stdin input except for Ctrl+C
Spinners for use in the terminal
Colored symbols for various log levels. Example: `✔︎ Success`