Your IP : 3.148.144.139


Current Path : /opt/alt/alt-nodejs9/root/lib/node_modules/npm/node_modules/is-cidr/example/
Upload File :
Current File : //opt/alt/alt-nodejs9/root/lib/node_modules/npm/node_modules/is-cidr/example/example.js

var r = require('../lib')

var v4true = r.isCidrV4('1.1.1.1/24')
console.log('cidrv4 true is', v4true)

var v4false = r.isCidrV4('1.1.1.256/24')
console.log('cidrv4 false is', v4false)

var v6true = r.isCidrV6('fe80:0000:0000:0000:0204:61ff:fe9d:f156')
console.log('cidrv6 true is', v6true)

var v6false = r.isCidrV6('fe80:0000:0000:0000:0204:61ff:fe9d:f156/sdfsdfs')
console.log('cidrv6 false is', v6false)

?>