Class

ip

ip()

get, check, validate ip address

Constructor

# new ip()

View Source js/Helper-lp.ts, line 8

Methods

# async static check()

Checks ip

View Source js/Helper-lp.ts, line 89

promises

# static cloudflare()

Retrieve ip from cloudflare.com

View Source js/Helper-lp.ts, line 62

# static get(callback) → {String}

Gets ip

Parameters:
Name Type Default Description
callback null

function callback(ip) or null return ip

View Source js/Helper-lp.ts, line 14

ip or callback

String

# static ipapi()

Retrieve ip from ipapi.co

View Source js/Helper-lp.ts, line 28

# static l2io()

Retrieve api from l2.io

View Source js/Helper-lp.ts, line 45

# init(callback)

Reflection class constructor

Parameters:
Name Type Description
callback
See:

View Source js/Helper-lp.ts, line 121

Example
var myObj = new myClass();
myObj.init(function() {
   // inside here you can use myObj
});