PhoneTap attemps to mock all the PhoneGap behaviour to be able to develop applications without testing anything in the simulator
A way of developing lib or tools for PhoneGap without to include it or run a simulator. All the methods (including the non-simulator friendly like 'camera') are included.
You can include the javascript if you develop with a browser
<script type="text/javascript" src="https://raw.github.com/elcuervo/phonetap/master/lib/phonetap.js"></script>
Or you can use the npm package
$ npm install phonetap
var phonetap = require('phonetap');
var Camera = phonetap.Camera;
var navigator = phonetap.PhoneTap;
Just substitute or route the phonegap.js file with phonetap.js and that's it! now you can use all the fancy tools from PhoneGap
navigator.geolocation.getCurrentPosition(function(position){
alert(position.coords.longitude);
});