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