Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eventonehq/cordova-utils
💻 A set of basic utilities for Apache Cordova apps.
https://github.com/eventonehq/cordova-utils
cli cordova semver utility
Last synced: about 16 hours ago
JSON representation
💻 A set of basic utilities for Apache Cordova apps.
- Host: GitHub
- URL: https://github.com/eventonehq/cordova-utils
- Owner: eventOneHQ
- License: mit
- Created: 2019-07-04T18:32:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T01:48:58.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T08:18:33.690Z (12 days ago)
- Topics: cli, cordova, semver, utility
- Language: JavaScript
- Homepage: https://oss.eventone.page/cordova-utils/
- Size: 1.08 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# cordova-utils
[![Build Status](https://api.travis-ci.com/eventOneHQ/cordova-utils.svg?branch=master)](http://travis-ci.com/eventOneHQ/cordova-utils)
[![NPM Version](https://img.shields.io/npm/v/cordova-utils.svg?style=flat)](https://www.npmjs.org/package/cordova-utils)
[![NPM Downloads](https://img.shields.io/npm/dm/cordova-utils.svg?style=flat)](https://www.npmjs.org/package/cordova-utils)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)A set of basic utilities for Apache Cordova apps.
## Installing
```bash
npm install -g cordova-utils# or if you just want to use it locally
npx cordova-utils version -v 1.4.5 -b 445
```_Note: For a global install of `-g cordova-utils`, OSX/Linux users may need to prefix the command with `sudo` or can setup [proper file permissions on OSX for npm](http://www.johnpapa.net/how-to-use-npm-global-without-sudo-on-osx/) to install without `sudo`._
## Usage:
### Command Line
```bash
cordova-utils version [options] -v -b
```**Example:**
```bash
cordova-utils version -v 1.4.5 -b 445
```### Library
**Example:**
```javascript
// CJS
const CordovaUtils = require('cordova-utils')
// or MJS
import CordovaUtils from 'cordova-utils'const cordovaUtils = new CordovaUtils()
cordovaUtils
.setVersion(version, build, configFile)
.then(res => {
// do something
})
.catch(err => {
// handle error
})
```