0.3.1 • Published 8 years ago

ip-to-int v0.3.1

Weekly downloads
7,549
License
MIT
Repository
github
Last release
8 years ago

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