New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

plugin-verify

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plugin-verify

Verify a Cordova plugin quickly with its sample index.html

latest
Source
npmnpm
Version
0.5.2
Version published
Maintainers
1
Created
Source

Plugin Verify

Verify a cordova plugin quickly with its own test sample project.

How To Use

First, make sure cordova CLI is installed, if not yet, run:

npm install cordova -g

Now install the verify tool and use it to verify a cordova plugin:

npm install plugin-verify -g

plugin-verify <plugin_id_or_path> [ios | android | ...]

Example:


plugin-verify cordova-plugin-admobpro ios

plugin-verify nl.x-services.plugins.actionsheet android

How It Works

It creates a demo cordova project and copy the files under demo/ or test/ for testing purpose.

Here are the steps that the tool actualy runs:

    # create a demo project
    cordova create ./tmp com.rjfun.demo Demo
    cd ./tmp

    # now add the plugin, cordova CLI will handle dependency automatically
    cordova plugin add <plugin_id_or_path>

    cordova platform add android
    cordova platform add ios

    # now remove the default www content, copy the demo html file to www
    rm -r www/*;
    cp -r plugins/<plugin_id>/test/* www/;

    # now build and run the demo in your device or emulator
    cordova emulate ios;
    cordova emulate android; 

Credits

A simple tool created by Raymond Xie, to verify his lots of plugins.

Any comments are welcome.

Keywords

cordova:ecosystem

FAQs

Package last updated on 13 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts