Check if a path exists
MIT License
Check if a path exists, cross-platform.
$ npm install --global path-exists-cli
$ path-exists --help Usage $ path-exists <path> Example $ path-exists foo && echo "exists" || echo "doesn't exist"
Get the path of the current directory in Finder (macOS) and Explorer (Windows)
Check if an app exists on macOS
Get the path to this package - Useful for testing
Find a file by walking up parent directories
Check if a path is a file, directory, or symlink
Check if a file path is a binary file
Get the first path that exists on disk of multiple paths
Check if a path is inside another path
Check if a path is in the current working directory
Get the path to an app (macOS)
Check if a project is using Yarn
Check if your package was installed globally
Find the root directory of a Node.js project or npm package
Check if a file path is a text file