1.0.1 • Published 7 years ago

bgeo v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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

SignatureDescription
current() -> PromiseGet current geo data

License

This software is released under the MIT License.

Links

1.0.1

7 years ago

1.0.0

7 years ago