@the-/geo
Geo location utility
Installation
$ npm install @the-/geo --save
Usage
'use strict'
const { TheGeo } = require('@the-/geo')
async function tryExample() {
const geo = new TheGeo()
const { lat, lng } = await geo.detect()
console.log('current geo location', { lat, lng })
}
tryExample().catch((err) => console.error(err))
API Guide
- module:@the-/geo
- TheGeo
See API Guide for more detail
License
This software is released under the MIT License.