Moved
This commit is contained in:
6
CM2010 Software Design and Development/Topic 2/8.3.1/node_modules/is-ip/index.js
generated
vendored
Normal file
6
CM2010 Software Design and Development/Topic 2/8.3.1/node_modules/is-ip/index.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
'use strict';
|
||||
const ipRegex = require('ip-regex');
|
||||
|
||||
const isIp = module.exports = x => ipRegex({exact: true}).test(x);
|
||||
isIp.v4 = x => ipRegex.v4({exact: true}).test(x);
|
||||
isIp.v6 = x => ipRegex.v6({exact: true}).test(x);
|
||||
Reference in New Issue
Block a user