Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-simulate

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-simulate

A browser based plugin simulation tool to aid development and testing of Cordova applications.

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
103
increased by255.17%
Maintainers
1
Weekly downloads
 
Created
Source

A browser based plugin simulation tool to aid development and testing of Cordova applications.

Note that this is currently a work in progress / prototype! It still lacks a bunch of functionality, and may be quite buggy.

Installation

npm install -g cordova-simulator

Usage

From the command line anywhere within a Cordova project, enter the following:

simulate [<platform>] [--target=<browser>] 

Where:

  • platform is any Cordova platform that has been added to your project. If no platform is specified, the browser platform will be used.
  • browser is the name of the browser to launch your app in. Can be any of the following: chrome, chromium, firefox, ie, opera, safari.

What it does

Cordova simulator will launch your app in the browser, and open a second browser window displaying UI that allows you to control how plugins in your application work.

This preview version includes built-in support for the following Cordova plugins:

It also allows for plugins to define their own UI. To add simulation support to a plugin, follow these steps:

  1. Clone the cordova-simulator git repository (git clone https://github.com/TimBarham/cordova-simulator.git), as it contains useful example code (see src/plugins).
  2. Add your plugin UI code to your plugin in src/simulation. There must be a file called sim-host-controls.html, which defines the UI to display in the simulation window, and there can also be supporting js, css and image files which it references.

Keywords

FAQs

Package last updated on 05 Aug 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc