Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "mask-vali", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "a package can check the IPv4 Cidr and IPv6 Cidr Mask is validate or not ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,5 +0,5 @@ | ||
这是一个只用来检验ipv4 Cidr掩码是否合法的包,比如:192.12.0.0/12 (合法) , 192.12.0.0/11 (不合法)。 | ||
这是一个只用来检验ipv4 和 ipv6 Cidr掩码是否合法的包,比如:192.12.0.0/12 (合法) , 192.12.0.0/11 (不合法)。 | ||
实现的依据是根据《计算机网络》书中cidr的掩码的概念 | ||
This is a package that only can be used to verify whether the ipv4 Cidr mask is legal, such as 192.12.0.0/12 (legal) and 192.12.0.0/11 (illegal). | ||
This is a package that only can be used to verify whether the ipv4、ipv6 Cidr mask is legal, such as 192.12.0.0/12 (legal) and 192.12.0.0/11 (illegal). | ||
The basis for implementation is based on the concept of CIDR mask in the book "Computer Network" | ||
@@ -9,3 +9,6 @@ | ||
const res = judgeMask('192.12.0.0/12 ') // res = true | ||
const res = judgeMask('192.12.0.0/11 ') // res = false | ||
const res = judgeIpv4CidrRule('192.12.0.0/12 ') // res = true | ||
const res = judgeIpv4CidrRule('192.12.0.0/11 ') // res = false | ||
const res = judgeIpv6CidrRule('2000::/8') // res = true | ||
const res = judgeIpv6CidrRule('1::/3') // res = false |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10437
13
0