path-exists-cli

Check if a path exists

Usage no npm install needed!

<script type="module">
  import pathExistsCli from 'https://cdn.skypack.dev/path-exists-cli';
</script>

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"

Related