Module: sources/file-system/sockets/isSocketPath

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