package
Check if a file is a directory
npm install is-dGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Check if a file is a directory
$ npm install --save is-dconst isDirectory = require('is-d');
isDirectory.sync('index.js');
//=> false
isDirectory('foo').then(dir => {
//=> true
});Type: string
The path of the file.
MIT © Sam Verschueren