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

cordova-find-config

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-find-config

Find config.xml in a cordova project

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cordova-find-config Build Status

Find config.xml in a cordova project

Install

$ npm install --save cordova-find-config

Usage

const findConfig = require('cordova-find-config')
const projectRoot = 'path/to/cordova-app'

// Asynchronous, returns promise of config path
findConfig(projectRoot)
  .then(configPath => /* Use it! */)

// Synchronous, returns config path
const configPath = findConfig.sync(projectRoot))

Why?

From the cordova docs on config.xml:

Note that before version 3.3.1-0.2.0, the file existed at app/www/config.xml, and that having it here is still supported.

This package implements the same logic as cordova to look for a config.xml:

  1. Use app/config.xml if present
  2. Else, use app/www/config.xml if present

License

MIT © Raphael von der Grün

Keywords

FAQs

Package last updated on 28 Mar 2019

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