is-directory
Returns true if a filepath exists on the file system and it's directory.
Returns true if a filepath exists on the file system and it's directory.
Get the directory of globally installed packages and binaries
Write data to a file, replacing the file if it already exists and creating any intermediate directories if they don't already exist. Thin wrapper around node's native fs methods.
Look up environment settings specific to different operating systems
Import a module like with `require()` but from a given path
Get XDG Base Directory paths
Return true if a file path contains the given path.
Check if a module ID is resolvable with require()
Import a module like with `require()` but from the current working directory
Find the closest package.json file
Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.
Resolve a directory that is either local, global or in the user's home directory.
Convert a string to a valid safe filename
Remove leading directory components from a path, like tar's --strip-components option
Detects if a file exists and returns the resolved filepath.
Virtual file format.
Get the real path of the system temp directory
Returns an object with the (non-glob) base path and the actual pattern.
Returns `true` if the path appears to be relative.
Returns true if a filepath is a windows UNC file path.