Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

path-exists-cli

sindresorhus88.7kMIT2.0.0

Check if a path exists

cli-app, cli, path, exists, exist, file, filepath, fs, filesystem, file-system, access, stat

readme

path-exists-cli

Check if a path exists, cross-platform.

Install

$ npm install --global path-exists-cli

Usage

$ path-exists --help

  Usage
    $ path-exists <path>

  Example
    $ path-exists foo && echo "exists" || echo "doesn't exist"