path packages
Packages tagged with "path".
21 packages
Get the PATH environment variable key cross-platform
Resolve a URI relative to an optional base URI
Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.
Some useful utilities I often need
{G,S}et object values using MongoDB-like path notation
Resolve the path of a module like `require.resolve()` but from the current working directory
Convert Windows backslash paths to slash paths
Get the paths of edge browser easily
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Make a directory and its parents if needed - Think `mkdir -p`
Resolve the path of a module like `require.resolve()` but from a given path
Get paths for storing things like data, config, cache, etc
Find a file or directory by walking up parent directories — Zero dependencies
Check if a filename is safe to use in a path join operation
Serialize Canvas path commands to SVG.
Node.js path.parse() ponyfill
A cross-platform path to the user's home
Find a file or directory by walking up parent directories
Find the root directory of a Node.js project or npm package
Extract the non-magic parent path from a glob string.
Get the first path that exists on disk of multiple paths