Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/swenson1992/ipv6-util-ts

ipv6 utils typescript
https://github.com/swenson1992/ipv6-util-ts

ipv6 ipv6-address ipv6-calulator ipv6-support typescript

Last synced: about 1 month ago
JSON representation

ipv6 utils typescript

Awesome Lists containing this project

README

        

# IPV6 Util TypeScript

## Install
```bash
> yarn add ipv6-util-ts
or
> npm install --save ipv6-util-ts
```

## How To Use
```nodejs
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))
```