locate-client

1.2.2 • Public • Published

locate-client

A node module for locating clients.

Usage limits

ip-api.com will automatically ban any IP addresses doing over 150 requests per minute. To unban your IP click here. You are free to use ip-api.com for non-commercial use. ip-api.com does not allow commercial use without prior approval. For commercial, unlimited use see ip-api.com pro service.

Install

npm i --save locate-client

Usage

const locateClient  =  require("locate-client");

(async  ()  => {
	var location  = await locateClient();
	console.log(location);
})();

/*
{
	status: 'success',
	country: 'India',
	countryCode: 'IN',
	region: 'WB',
	regionName: 'West Bengal',
	city: 'Kolkata',
	zip: '700019',
	lat: 22.5602,
	lon: 88.3698,
	timezone: 'Asia/Kolkata',
	isp: 'Bharti Airtel Limited',
	org: 'Sai Complex',
	as: 'AS45609 Bharti Airtel Ltd. AS for GPRS Service'
}
*/

Package Sidebar

Install

npm i locate-client

Weekly Downloads

0

Version

1.2.2

License

MIT

Unpacked Size

2.89 kB

Total Files

4

Last publish

Collaborators

  • anishroy