Socket
Book a DemoInstallSign in
Socket

geolocation-stream

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geolocation-stream

streaming API on top of the html5 geolocation API

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

geolocation-stream

npm install geolocation-stream

use HTML5 Geolocation to watch location changes the node way -- with streams

var movement = geolocationstream()

movement is a readable stream and speaks stream events: data, error and end. that means you can pipe movement output to anything that accepts streams, such as an XHR. in this case the data events will be lat/lon position updates using the watchPosition part of HTML5 geolocation

to generate demo-bundle.js using browserify:

npm install browserify -g
browserify demo.js -o demo-bundle.js

MIT LICENSE

FAQs

Package last updated on 27 Sep 2013

Did you know?

Socket

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