1.0.0 • Published 9 years ago

is-existing-file v1.0.0

Weekly downloads
2,766
License
MIT
Repository
github
Last release
9 years ago

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)

NameTypeDescription
filepathStringFile path to check
cbFunctionCallback function

License

MIT