Socket
Book a DemoInstallSign in
Socket

cordova-plugin-shake

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-shake - npm Package Compare versions

Comparing version

to
0.6.0

src/ios/hooks/patchMainViewController.js

2

package.json
{
"name": "cordova-plugin-shake",
"version": "0.5.4",
"version": "0.6.0",
"author": "Lee Crossley <leee@hotmail.co.uk> (http://ilee.co.uk/)",

@@ -5,0 +5,0 @@ "description": "Cordova Plugin to detect when a physical device performs a shake gesture.",

@@ -1,6 +0,7 @@

## Shake Gesture Detection for Cordova [![npm version](https://badge.fury.io/js/cordova-plugin-shake.svg)](http://badge.fury.io/js/cordova-plugin-shake)
# Shake Gesture Detection for Cordova [![npm version](https://badge.fury.io/js/cordova-plugin-shake.svg)](http://badge.fury.io/js/cordova-plugin-shake)
Apache Cordova / PhoneGap Plugin to detect when a physical device performs a shake gesture.
This is based on a standalone JavaScript implementation I wrote last year ([gist](https://gist.github.com/leecrossley/4078996)).
For iOS, the plugin uses the native shake detection.
Fo all other platforms, it is based on a standalone JavaScript implementation I wrote last year ([gist](https://gist.github.com/leecrossley/4078996)).

@@ -11,21 +12,21 @@ ## Install

#### Latest published version on npm
### Latest published version on npm
```
```bash
cordova plugin add cordova-plugin-shake
```
#### Latest version from GitHub
### Latest version from GitHub
```
```bash
cordova plugin add https://github.com/leecrossley/cordova-plugin-shake.git
```
### Usage
## Usage
You **do not** need to reference any JavaScript, the Cordova plugin architecture will add a shake object to your root automatically when you build.
**NB:** There is no native component to this plugin but it depends on the device motion plugin (added when this plugin is added).
**NB:** For non-iOS platforms, there is no native component to this plugin but it depends on the device motion plugin (added when this plugin is added).
### Example
## Example

@@ -32,0 +33,0 @@ ```js

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.