current-location

1.1.0 • Public • Published

current-location

Get your current location (latitude, longitude) on the command line as JSON

Uses CoreLocation.framework on OS X (thanks to WhereAmI) and falls back to asking Google

Used by the gititude module

TODO (send a PR)

  • add offline wifi geolocation database
  • better linux/windows support

install

npm i current-location -g

usage

$ current-location
{"latitude":45.51645,"longitude":-122.629713}

will exit with exit code 1 if it could not get a location

Readme

Keywords

none

Package Sidebar

Install

npm i current-location

Weekly Downloads

6

Version

1.1.0

License

ISC

Last publish

Collaborators

  • maxogden