summaryrefslogtreecommitdiff
path: root/deps/node/deps/npm/node_modules/is-cidr
diff options
context:
space:
mode:
Diffstat (limited to 'deps/node/deps/npm/node_modules/is-cidr')
-rw-r--r--deps/node/deps/npm/node_modules/is-cidr/LICENSE22
-rw-r--r--deps/node/deps/npm/node_modules/is-cidr/README.md51
-rw-r--r--deps/node/deps/npm/node_modules/is-cidr/index.js13
-rw-r--r--deps/node/deps/npm/node_modules/is-cidr/package.json80
4 files changed, 0 insertions, 166 deletions
diff --git a/deps/node/deps/npm/node_modules/is-cidr/LICENSE b/deps/node/deps/npm/node_modules/is-cidr/LICENSE
deleted file mode 100644
index 9669c20f..00000000
--- a/deps/node/deps/npm/node_modules/is-cidr/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) silverwind
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/deps/node/deps/npm/node_modules/is-cidr/README.md b/deps/node/deps/npm/node_modules/is-cidr/README.md
deleted file mode 100644
index 1fa3ee9e..00000000
--- a/deps/node/deps/npm/node_modules/is-cidr/README.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# is-cidr
-
-[![](https://img.shields.io/npm/v/is-cidr.svg?style=flat)](https://www.npmjs.org/package/is-cidr) [![](https://img.shields.io/npm/dm/is-cidr.svg)](https://www.npmjs.org/package/is-cidr) [![](https://api.travis-ci.org/silverwind/is-cidr.svg?style=flat)](https://travis-ci.org/silverwind/is-cidr)
-
-> Check if a string is an IP address in CIDR notation
-
-## Install
-
-```
-npm i is-cidr
-```
-
-
-## Usage
-
-```js
-const isCidr = require('is-cidr');
-
-isCidr('192.168.0.1/24'); //=> 4
-isCidr('1:2:3:4:5:6:7:8/64'); //=> 6
-isCidr('10.0.0.0'); //=> 0
-isCidr.v6('10.0.0.0/24'); //=> false
-```
-
-
-## API
-
-### isCidr(input)
-
-Check if `input` is a IPv4 or IPv6 CIDR address. Returns either `4`, `6` (indicating the IP version) or `0` if the string is not a CIDR.
-
-### isCidr.v4(input)
-
-Check if `input` is a IPv4 CIDR address. Returns a boolean.
-
-### isCidr.v6(input)
-
-Check if `input` is a IPv6 CIDR address. Returns a boolean.
-
-
-## Related
-
-- [cidr-regex](https://github.com/silverwind/cidr-regex) - Regular expression for matching IP addresses in CIDR notation
-- [is-ip](https://github.com/sindresorhus/is-ip) - Check if a string is an IP address
-- [ip-regex](https://github.com/sindresorhus/ip-regex) - Regular expression for matching IP addresses
-
-## License
-
-© [silverwind](https://github.com/silverwind), distributed under BSD licence
-
-Based on previous work by [Felipe Apostol](https://github.com/flipjs)
diff --git a/deps/node/deps/npm/node_modules/is-cidr/index.js b/deps/node/deps/npm/node_modules/is-cidr/index.js
deleted file mode 100644
index 3eaf906c..00000000
--- a/deps/node/deps/npm/node_modules/is-cidr/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-"use strict";
-const cidrRegex = require("cidr-regex");
-const re4 = cidrRegex.v4({exact: true});
-const re6 = cidrRegex.v6({exact: true});
-
-const isCidr = module.exports = str => {
- if (re4.test(str)) return 4;
- if (re6.test(str)) return 6;
- return 0;
-};
-
-isCidr.v4 = str => re4.test(str);
-isCidr.v6 = str => re6.test(str);
diff --git a/deps/node/deps/npm/node_modules/is-cidr/package.json b/deps/node/deps/npm/node_modules/is-cidr/package.json
deleted file mode 100644
index 5737794e..00000000
--- a/deps/node/deps/npm/node_modules/is-cidr/package.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "_from": "is-cidr@3.0.0",
- "_id": "is-cidr@3.0.0",
- "_inBundle": false,
- "_integrity": "sha512-8Xnnbjsb0x462VoYiGlhEi+drY8SFwrHiSYuzc/CEwco55vkehTaxAyIjEdpi3EMvLPPJAJi9FlzP+h+03gp0Q==",
- "_location": "/is-cidr",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "is-cidr@3.0.0",
- "name": "is-cidr",
- "escapedName": "is-cidr",
- "rawSpec": "3.0.0",
- "saveSpec": null,
- "fetchSpec": "3.0.0"
- },
- "_requiredBy": [
- "#USER",
- "/"
- ],
- "_resolved": "https://registry.npmjs.org/is-cidr/-/is-cidr-3.0.0.tgz",
- "_shasum": "1acf35c9e881063cd5f696d48959b30fed3eed56",
- "_spec": "is-cidr@3.0.0",
- "_where": "/Users/aeschright/code/cli",
- "author": {
- "name": "silverwind",
- "email": "me@silverwind.io"
- },
- "bugs": {
- "url": "https://github.com/silverwind/is-cidr/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Felipe Apostol",
- "email": "flipjs.io@gmail.com",
- "url": "http://flipjs.io/"
- }
- ],
- "dependencies": {
- "cidr-regex": "^2.0.10"
- },
- "deprecated": false,
- "description": "Check if a string is an IP address in CIDR notation",
- "devDependencies": {
- "eslint": "^5.7.0",
- "eslint-config-silverwind": "^2.0.9",
- "updates": "^4.5.2",
- "ver": "^3.0.0"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/silverwind/is-cidr#readme",
- "keywords": [
- "cidr",
- "regex",
- "notation",
- "cidr notation",
- "prefix",
- "prefixes",
- "ip",
- "ip address",
- "network"
- ],
- "license": "BSD-2-Clause",
- "name": "is-cidr",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/silverwind/is-cidr.git"
- },
- "scripts": {
- "test": "make test"
- },
- "version": "3.0.0"
-}