1.0.0 • Published 8 years ago

is-d v1.0.0

Weekly downloads
2,428
License
MIT
Repository
github
Last release
8 years ago

is-d Build Status

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