Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elcuervo/phonetap

PhoneTap: give all the PhoneTap js methods to do some testing or develop outside the simulator
https://github.com/elcuervo/phonetap

Last synced: 30 days ago
JSON representation

PhoneTap: give all the PhoneTap js methods to do some testing or develop outside the simulator

Awesome Lists containing this project

README

        

# PhoneTap

![PhoneTap](http://forevernokia.com/wp-content/uploads/2010/12/phone-tap.jpg)

PhoneTap attemps to mock all the PhoneGap behaviour to be able to develop
applications without testing anything in the simulator

## What is this?

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.

## Install?

You can include the javascript if you develop with a browser

```html

```

Or you can use the npm package

```bash
$ npm install phonetap
```

## Usage within Nodejs

```javascript
var phonetap = require('phonetap');
var Camera = phonetap.Camera;
var navigator = phonetap.PhoneTap;
```

## Usage in a browser

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

```javascript
navigator.geolocation.getCurrentPosition(function(position){
alert(position.coords.longitude);
});
```