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

Package detail

is-existing-file

joakimbeng10kMIT1.0.0

Check if a certain path exists and is a file (i.e. not a folder)

file, exists

readme

is-existing-file

NPM version

Check if a certain path exists and is a file (i.e. not a folder)

Installation

Install is-existing-file using npm:

npm install --save is-existing-file

Usage

Module usage

var isExistingFile = require('is-existing-file');

isExistingFile('/a/file/path', function (result) {
  // ...
});

API

isExistingFile(filepath, cb)

Name Type Description
filepath String File path to check
cb Function Callback function

License

MIT