Module: sources/file-system/paths/isValidPath

Export function to validate if a value is a valid path
Author:
License:
Source:

Example

import { isValidPath } from 'itee-validators'

if( isValidPath( value ) ) {
    //...
} else {
    //...
}

Requires

Methods


<static> isInvalidPath(data)

Check if given data is not a valid file path
Parameters:
Name Type Description
data * The data to check against the path type
Source:
Returns:
true if data is a valid path, false otherwise
Type
boolean

<static> isValidPath(data)

Check if given data is a valid file path
Parameters:
Name Type Description
data * The data to check against the path type
Source:
Returns:
true if data is a valid path, false otherwise
Type
boolean