npm.io
1.0.10 • Published 7 years ago

the-geo

Licence
MIT
Version
1.0.10
Deps
2
Size
56 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

the-geo

Build Status npm Version JS Standard

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

License

This software is released under the MIT License.

Keywords