Module: sources/file-system/character-devices/isValidCharacterDevicePath

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

Example

import { isValidCharacterDevicePath } from 'itee-validators'

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

Methods


<static> isInvalidCharacterDevicePath(data)

Check if given data is an invalid character device path
Parameters:
Name Type Description
data * The data to check against the character device path type
Source:
Returns:
true if data is an invalid character device path, false otherwise
Type
boolean

<static> isValidCharacterDevicePath(data)

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