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