Socket
Socket
Sign inDemoInstall

wifi-triangulate

Package Overview
Dependencies
7
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    wifi-triangulate

Finds your current position on planet earth using the wifi access points in your vicinity


Version published
Weekly downloads
9
increased by12.5%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

wifi-triangulate

Finds your current position on planet earth using the wifi access points in your vicinity

Build status

js-standard-style

Installation

npm install wifi-triangulate

Usage

This module requires that the wifi card on your computer is active and that you have access to the internet in order to communicate with Google so that it can triangulate your position.

var triangulate = require('wifi-triangulate')

triangulate(function (err, location) {
  if (err) throw err
  console.log(location) // => { lat: 38.0690894, lng: -122.8069356, accuracy: 42 }
})

CLI

Install wifi-triangulate as a global module to use it as a CLI:

npm install --global wifi-triangulate

Now just execute the wifi-triangulate command:

$ wifi-triangulate
{
    "lat": 38.0690894,
    "lng": -122.8069356,
    "accuracy": 42
}

License

MIT

Keywords

FAQs

Last updated on 23 Apr 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc