🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

cordova-platform-ready

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-platform-ready

A tiny module to fire callback after cordova finishes initializing.

1.0.0
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

cordova-platform-ready

This is a small module that provides a single API for executing code either after Cordova initializes or after the window loads, if running as a webpage.

Usage

function initialize () {
  // This code will be executed when the device is ready or the window loads
}

require('cordova-platform-ready').ready(initialize)

You can also queue up multiple callbacks to be executed:

const cordovaPlatformReady = require('cordova-platform-ready')

cordovaPlatformReady.ready(cb1)
cordovaPlatformReady.ready(cb2)

Keywords

cordova

FAQs

Package last updated on 11 Nov 2016

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