# ipv410.255.101.19# ipv4 with subnet10.255.101.19/24# invalid ipv4 with subnet10.255.101.19/33# ipv62408:8720:2000:10be:0:0:f:1# ipv6 with subnet2408:8720:2000:10be:0:0:f:1/64# invalid ipv6 with subnet2408:8720:2000:10be:0:0:f:1/129
is-ip
is-cidr
var isCidr = require('is-cidr')var isIp = require('is-ip')const isIpOrSubnet = vip => isIp(vip) || isCidr(vip);