🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
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
Version published
Weekly downloads
76
-54.49%
Maintainers
1
Weekly downloads
 
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:

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

License

MIT © Raphael von der Grün

Keywords

config

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