mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-06-14 05:21:04 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @name isIp
|
||||
* @summary Tests if the value is a valid IP address
|
||||
* @description
|
||||
* Checks to see if the value is a valid IP address. Optionally check for either v4/v6
|
||||
* @example
|
||||
* <BR>
|
||||
*
|
||||
* ```javascript
|
||||
* import { isIp } from '@pezkuwi/util';
|
||||
*
|
||||
* isIp('192.168.0.1')); // => true
|
||||
* isIp('1:2:3:4:5:6:7:8'); // => true
|
||||
* isIp('192.168.0.1', 'v6')); // => false
|
||||
* isIp('1:2:3:4:5:6:7:8', 'v4'); // => false
|
||||
* ```
|
||||
*/
|
||||
export declare function isIp(value: string, type?: 'v4' | 'v6'): boolean;
|
||||
Reference in New Issue
Block a user