-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Evgheniy Kovaliov edited this page Dec 22, 2023
·
8 revisions
All documentation and information about library is collected here :)
git
git clone https://github.com/kovaliovev/ip-tool.git
npm
npm i @kovaliovev/ip-tool
-
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();
- step 3: use methods of instances and of course let us know your comments and wishes!
while(ipv4.isValid('123.45.6.7')) {
console.log('Wow! I am so cool!');
}
For ip version 4
For ip version 6
Author: Evgheniy Kovaliov <kovaliov.evgeniy11@gmail.com>
For ip version 4
For ip version 6