Neurotoxin Powered Marketing
Have ideas to improve npm?Join in the discussion! »

is-existing-file

1.0.0 • Public • Published

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

Keywords

Install

npm i is-existing-file

DownloadsWeekly Downloads

2,696

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar