is-existing-file

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-existing-file
101.0.08 years ago8 years agoMinified + gzip package size for is-existing-file in KB

Readme

is-existing-file
!NPM versionnpm-imagenpm-url
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