Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/elcuervo/phonetap
- Owner: elcuervo
- Created: 2011-09-05T14:30:08.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-10-07T19:00:16.000Z (about 13 years ago)
- Last Synced: 2023-04-12T05:16:45.463Z (over 1 year ago)
- Language: CoffeeScript
- Homepage:
- Size: 119 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
});
```