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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.14latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.14
1.0.00

Package Sidebar

Install

npm i bgeo

Weekly Downloads

4

Version

1.0.1

License

MIT

Last publish

Collaborators

  • okunishinishi