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

Export function to validate if a value is a character device path
Author:
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
Source:
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
Source:
Returns:
true if path is not a character device path, false otherwise
Type
boolean