UNPKG
ip-subnet
Version:
latest (0.1.2)
0.1.2
0.1.0
A library of IP Subnetting utility functions
github.com/kjithin/ip-subnet
kjithin/ip-subnet
ip-subnet
/
lib
/
subnet.d.ts
12 lines
(11 loc)
•
305 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{
IP
}
from
'./ip'
;
export
declare
class
Subnet
{
private
_networkAddress;
private
_netMask;
constructor
(
networkAddress
: IP,
netMask
: IP
);
prefixLength
():
number
;
size
():
number
;
get
networkAddress
():
IP
;
get
netMask
():
IP
;
static
parseCIDR
(
cidr
:
string
):
Subnet
; }