is-directory-promise

1.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i is-directory-promise

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • davidfirst