REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.72 KB
Close
/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules/is-cidr/README.md
Text
Base64
# is-cidr Check if a string is a valid CIDR [](https://github.com/semantic-release/semantic-release) [](http://npm.im/is-cidr) [](http://opensource.org/licenses/MIT) [](https://travis-ci.org/flipjs/is-cidr) [](https://github.com/feross/standard) [](http://commitizen.github.io/cz-cli/) [](http://npm-stat.com/charts.html?package=is-cidr&from=2016-03-24) ## Install ```sh $ npm install --save is-cidr ``` ## Usage ```js import isCidr from 'is-cidr' // default is isCidrV4 import { isCidrV4, isCidrV6 } from 'is-cidr' // OR var isCidrV4 = require('is-cidr').isCidrV4 var isCidrV6 = require('is-cidr').isCidrV6 // is a CIDR v4 isCidr('18.101.25.153/24') // true // is not a CIDR v4 isCidrV4('999.999.999.999/12') // false // is a CIDR v6 isCidrV6('fe80:0000:0000:0000:0204:61ff:fe9d:f156') // true // is not a CIDR v6 isCidrV6('fe80:0000:0000:0000:0204:61ff:fe9d:f156/a') // false ``` ## API ### isCidr(string) Check if a string is CIDR IPv4. ### isCidrV4(string) Check if a string is CIDR IPv4. ### isCidrV6(string) Check if a string is CIDR IPv6. ## License MIT © [Felipe Apostol](https://github.com/flipjs)
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
example
DIR
-
drwxr-xr-x
2024-03-03 22:42:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
lib
DIR
-
drwxr-xr-x
2024-03-03 22:42:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
node_modules
DIR
-
drwxr-xr-x
2024-03-03 22:42:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
.npmignore
5 B
lrw-r--r--
2021-09-28 11:28:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
.travis.yml
326 B
lrw-r--r--
2021-09-28 11:28:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
2.29 KB
lrw-r--r--
2021-09-28 11:28:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
1.72 KB
lrw-r--r--
2021-09-28 11:28:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).