path-exists
Install
$ npm install --save path-existsUsage
// foo.js
const pathExists = require('path-exists');
pathExists('foo.js').then(exists => {
console.log(exists);
//=> true
});API
pathExists(path)
pathExists.sync(path)
Related
License
Last updated