is-d
v1.0.0
Published
Check if a file is a directory
Downloads
37,814
Maintainers
Readme
is-d
Check if a file is a directory
Install
$ npm install --save is-d
Usage
const isDirectory = require('is-d');
isDirectory.sync('index.js');
//=> false
isDirectory('foo').then(dir => {
//=> true
});
API
isDirectory(path)
isDirectory.sync(path)
path
Type: string
The path of the file.
License
MIT © Sam Verschueren