1 # is-directory [![NPM version](https://img.shields.io/npm/v/is-directory.svg?style=flat)](https://www.npmjs.com/package/is-directory) [![NPM downloads](https://img.shields.io/npm/dm/is-directory.svg?style=flat)](https://npmjs.org/package/is-directory) [![Build Status](https://img.shields.io/travis/jonschlinkert/is-directory.svg?style=flat)](https://travis-ci.org/jonschlinkert/is-directory)
3 Returns true if a filepath exists on the file system and it's directory.
7 Install with [npm](https://www.npmjs.com/):
10 $ npm install is-directory --save
16 var isDirectory = require('is-directory');
18 isDirectory('node_modules', function(err, dir) {
24 isDirectory.sync('README.md');
30 You might also be interested in these projects:
32 * [is-absolute](https://www.npmjs.com/package/is-absolute): Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute. | [homepage](https://github.com/jonschlinkert/is-absolute)
33 * [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern.… [more](https://www.npmjs.com/package/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob)
34 * [is-relative](https://www.npmjs.com/package/is-relative): Returns `true` if the path appears to be relative. | [homepage](https://github.com/jonschlinkert/is-relative)
38 Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-directory/issues/new).
42 Generate readme and API documentation with [verb](https://github.com/verbose/verb):
45 $ npm install verb && npm run docs
48 Or, if [verb](https://github.com/verbose/verb) is installed globally:
56 Install dev dependencies:
59 $ npm install -d && npm test
66 * [github/jonschlinkert](https://github.com/jonschlinkert)
67 * [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
71 Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
72 Released under the [MIT license](https://github.com/jonschlinkert/is-directory/blob/master/LICENSE).
76 _This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 21, 2016._