1.0.0 • Published 6 years ago
@josecuevas/isipv4 v1.0.0
isIPv4
Small JS library that checks if the given string is an IPv4 Address
Install
npm install isipv4
Usage
import isipv4 from 'isipv4'
isipv4('172.16.254.1') // true
isipv4('172.316.254.1') // false
isipv4('.254.255.0') // false
isipv4('1.1.1.1a') // false
License
Contact
1.0.0
6 years ago