path-exists
Check if a path exists
Check if a path exists
Check if a path is a file, directory, or symlink
Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.
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.
Check if a path is the current working directory
Check if a path is in the current working directory
Returns true if a filepath exists on the file system and it's directory.
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.
Return true if a file path contains the given path.
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.
Replaces a file extension with another one.
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.
Returns `true` if the path appears to be relative.
Returns true if a filepath is a windows UNC file path.
Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.
Regular expression for testing if a file path is a windows UNC file path. Can also be used as a component of another regexp via the `.source` property.
Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.