is-d

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i is-d

Weekly Downloads

11,759

Version

1.0.0

License

MIT

Last publish

Collaborators

  • samverschueren