ip-to-int

IP to Integer converter for Node.js

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ip-to-int
1020.3.18 years ago8 years agoMinified + gzip package size for ip-to-int in KB

Readme

ip-to-int

Install

npm install ip-to-int --save

Usage

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

Reference

http://www.aboutmyip.com/AboutMyXApp/IP2Integer.jsp