@mi-sec/ip
v1.0.7
Published
IP Address utility
Downloads
11
Readme
@mi-sec/ip
IP Address utility for parsing and validating IP Addresses
- Cross-platform - Support for:
- CommonJS, ECMAScript Modules and UMD builds
- Node >= 10, 12, 14
Usage
import ip from '@mi-sec/ip';
ip.validIPv4( '192.168.1.1' ) -> true
ip.longToIp( 3232235777 ) -> 192.168.1.1
ip.ipToLong( '192.168.1.1' ) -> 3232235777