@the-/geo

15.4.15 • Public • Published

@the-/geo

npm Version

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

See API Guide for more detail

License

This software is released under the MIT License.

Links

/@the-/geo/

    Package Sidebar

    Install

    npm i @the-/geo

    Weekly Downloads

    12

    Version

    15.4.15

    License

    MIT

    Unpacked Size

    50.6 kB

    Total Files

    15

    Last publish

    Collaborators

    • okunishinishi