npm.io
0.3.1 • Published 10 years ago

ip-to-int

Licence
MIT
Version
0.3.1
Deps
0
Vulns
0
Weekly
0
Stars
10

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

Keywords