Package Exports
- is-directory
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-directory) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-directory 
Extends
stats.isDirectory()
, returnstrue
if a filepath is a directory.
Install
Install with npm:
npm i is-directory --save-dev
Run tests
npm test
Usage
var isDir = require('is-directory');
console.log(isDir('README.md'));
//=> 'false'
console.log(isDir('test'));
//=> 'true'
function isFile(filepath) {
return !isDir(filepath);
}
console.log(isFile('README.md'));
//=> true
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on September 05, 2014.