| Server IP : 109.234.162.214 / Your IP : 216.73.216.112 Web Server : Apache System : Linux servd162214.srv.odns.fr 4.18.0-372.26.1.lve.1.el8.x86_64 #1 SMP Fri Sep 16 14:08:19 EDT 2022 x86_64 User : carpe ( 1178) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/alt-nodejs9/root/lib/node_modules/npm/node_modules/is-cidr/example/ |
Upload File : |
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)