1.0.0 • Published 10 years ago
is-existing-file v1.0.0
is-existing-file
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-fileUsage
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
1.0.0
10 years ago