1.0.7 • Published 2 years ago

location-ip v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
2 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

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago