New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cordova-common

Package Overview
Dependencies
Maintainers
8
Versions
2210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-common

Apache Cordova tools and platforms shared routines

  • 2.0.4-nightly.2017.5.27.3962053f
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19K
decreased by-75.18%
Maintainers
8
Weekly downloads
 
Created

What is cordova-common?

The cordova-common package provides a set of utilities and shared functionality for Apache Cordova tools. It includes features for handling configuration files, managing plugins, and other common tasks needed for building and maintaining Cordova applications.

What are cordova-common's main functionalities?

Handling Configuration Files

This feature allows you to parse and manipulate Cordova configuration files (config.xml). The code sample demonstrates how to load a config.xml file, change the app name, and save the changes.

const ConfigParser = require('cordova-common').ConfigParser;
const config = new ConfigParser('path/to/config.xml');
config.setName('MyApp');
config.write();

Plugin Management

This feature provides utilities for managing Cordova plugins. The code sample shows how to retrieve information about a specific plugin using the PluginInfoProvider.

const PluginInfoProvider = require('cordova-common').PluginInfoProvider;
const pluginInfoProvider = new PluginInfoProvider();
const pluginInfo = pluginInfoProvider.get('path/to/plugin');
console.log(pluginInfo.id);

Event Emitting

This feature allows you to use an event system for logging and other purposes. The code sample demonstrates how to listen for and emit log events.

const events = require('cordova-common').events;
events.on('log', (message) => console.log(message));
events.emit('log', 'This is a log message');

Other packages similar to cordova-common

FAQs

Package last updated on 27 May 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

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