is-dir-promise
v1.0.1
Published
Promise version is-dir
Downloads
7
Readme
is-dir-promise
Promise version of
is-dir
Install
$ npm install --save is-dir-promise
Usage
var isDirPromise = require('is-dir-promise');
isDirP("/tmp").then(function(ret){
console.log("Found it!");
return;
}).catch(function(e){
throw Error(e);
});
API
isDirPromise(path)
path
Required
Type: string
Path of directory.
License
MIT © Adam Stokes