Export function to validate if a value is a directories path
- License:
- Source:
Example
import { isDirectoryPath } from 'itee-validators'
if( isDirectoryPath( value ) ) {
//...
} else {
//...
}
Requires
Methods
-
<static> isDirectoryPath(path)
-
Check if given path is a directory path
Parameters:
Name Type Description pathstring | Buffer | URL The data to check against the directory path type Returns:
true if path is a directory path, false otherwise- Type
- boolean
-
<static> isNotDirectoryPath(path)
-
Check if given path is a not directory path
Parameters:
Name Type Description pathstring | Buffer | URL The data to check against the directory path type Returns:
true if path is a not directory path, false otherwise- Type
- boolean