1.0.2 • Published 7 years ago

is-directory-promise v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

is-directory-promise

Checks if a path is a directory and returns promise

Quick start

const isDirectoryP = require('is-directory-promise');

isDirectoryP('\.').then(result => console.log(result)); //true
isDirectoryP('non-exist-dir').then(result => console.log(result)); //false
isDirectoryP(14).then().catch(err => console.error(err)); //the path argument must be a string

Test

npm test