3.0.1 • Published 10 months ago

mask-vali v3.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

这是一个只用来检验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、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"

example:

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

3.0.1

10 months ago

3.0.0

10 months ago

2.0.3

12 months ago

1.2.3

12 months ago

1.2.1

12 months ago

1.1.3

12 months ago

1.1.1

12 months ago

1.0.3

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago