npm install ip-to-int --save
const ipInt = require('ip-to-int');
// IP to Integer
ipInt('89.150.79.17').toInt(); // 1503022865
// Integer to IP
ipInt('1503022865').toIP(); // 89.150.79.17
IP to Integer converter for Node.js
npm install ip-to-int --save
const ipInt = require('ip-to-int');
// IP to Integer
ipInt('89.150.79.17').toInt(); // 1503022865
// Integer to IP
ipInt('1503022865').toIP(); // 89.150.79.17
IP to Integer converter for Node.js
MIT License