is-dir-promise

1.0.1 • Public • Published

is-dir-promise Build Status

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

Readme

Keywords

Package Sidebar

Install

npm i is-dir-promise

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • battlemidget
  • jsdevel