Skip to content

Swenson1992/ipv6-util-ts

Repository files navigation

IPV6 Util TypeScript

Install

> yarn add ipv6-util-ts
or
> npm install --save ipv6-util-ts

How To Use

const ipv6 = require('ipv6-util-ts')

console.log(ipv6.checkipv6("2401:3480:3000::11"))
console.log(ipv6.checkipv6("2401:3480:3000::"))
console.log(ipv6.checkipv6("aaaa:12121:3000:0:0:0"))
console.log(ipv6.checkipv6("192.168.150.12"))

console.log(ipv6.calculate("2001:db8::/48"))
console.log(ipv6.subnet_slashes("2001:db8::/48", 50))