1.0.7 • Published 3 years ago

location-ip v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

location-ip

NPM package enables you to easily get client location and ip address using Ipify API and Geoplugin API.

Installation

npm i location-ip

Basic usage

import locationip from 'location-ip/location-ip.js'

locationip().then(data=>console.log(data))
This code returns:
{
    ip: client-ip,
    location: {
        place: client-place,
        region: client-region,
        countryCode: client-countryCode,
        latitude: location-latitude,
        longitude: location-longitude
    }
}

Github repository

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago