UNPKG
@chainsafe/netmask
Version:
latest (2.0.0)
2.0.0
1.0.0
Typescript implementation of netmask filtering
@chainsafe/netmask
/
dist
/
src
/
cidr.d.ts
6 lines
•
206 B
TypeScript
View Raw
1
2
3
4
5
6
export
declare
function
parseCidr
(
s
:
string
): {
network
:
Uint8Array
;
mask
:
Uint8Array
; };
export
declare
function
cidrMask
(
ones
:
number
,
bits
:
number
):
Uint8Array
;
//# sourceMappingURL=cidr.d.ts.map