bgeo

1.0.1 • Public • Published

bgeo

Build Status Code Climate Code Coverage npm Version JS Standard

Get geo positions on browser

Installation

$ npm install bgeo --save

Usage

'use strict'

const { current } = require('bgeo')
const co = require('co')

co(function * () {
  let position = yield current()
  if (position) {
    let { coords } = position
    console.log('coords:', coords)
  }
}).catch((err) => console.error(err))

Functions

Available functions

Signature Description
current() -> Promise Get current geo data

License

This software is released under the MIT License.

Links

Readme

Keywords

none

Package Sidebar

Install

npm i bgeo

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • okunishinishi