Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
max-mapper committed Jun 23, 2012
1 parent 475bec0 commit e181c56
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use HTML5 [Geolocation](https://developer.mozilla.org/en/Using_geolocation) to watch location changes the node way -- with streams

var movement = new GeolocationStream()
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

Expand All @@ -13,5 +13,4 @@ use HTML5 [Geolocation](https://developer.mozilla.org/en/Using_geolocation) to w
npm install browserify -g
browserify demo.js -o demo-bundle.js


MIT LICENSE

0 comments on commit e181c56

Please sign in to comment.