Packages by sindresorhus
Packages maintained by sindresorhus.
14 packages
Resolve the path of a module like `require.resolve()` but from a given path
Merge objects using their property descriptors
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Find a file or directory by walking up parent directories
Get the first path that exists on disk of multiple paths
Find the root directory of a Node.js project or npm package
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Get the PATH environment variable key cross-platform
Resolve the path of a module like `require.resolve()` but from the current working directory
Some useful utilities I often need
Convert Windows backslash paths to slash paths
Get paths for storing things like data, config, cache, etc
Let a globally installed package use a locally installed version of itself if available
Escape RegExp special characters