Skip to content
Evgheniy Kovaliov edited this page Dec 22, 2023 · 8 revisions

Welcome to the ip-tool wiki!

All documentation and information about library is collected here :) betterLogo

To install the library:

git

git clone https://github.com/kovaliovev/ip-tool.git

npm

npm i @kovaliovev/ip-tool

To use capabilities of the library:

  • step 1: import required classes IPv4 / IPv6
const { IPv4, IPv6 } = require('ip-tool');
  • step 2: create instances of required classes
const ipv4 = new IPv4();
const ipv6 = new IPv6();
while(ipv4.isValid('123.45.6.7')) {
  console.log('Wow! I am so cool!');
}

To read documentation:

For ip version 4

For ip version 6

MAIN PAGE

See all methods documentation:

For ip version 4

For ip version 6

Clone this wiki locally