# eeschiavo-cordova-plugin-app-version

> Reads the version of your app from the target build settings

Latest version **1.0.0** (published 2017-11-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install eeschiavo-cordova-plugin-app-version
pnpm add eeschiavo-cordova-plugin-app-version
yarn add eeschiavo-cordova-plugin-app-version
bun add eeschiavo-cordova-plugin-app-version
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-11-13 |
| First published | 2017-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | eeschiavo |

## Links

- npm: https://www.npmjs.com/package/eeschiavo-cordova-plugin-app-version
- Repository: https://github.com/eeschiavo/cordova-plugin-app-version
- Homepage: https://github.com/eeschiavo/cordova-plugin-app-version#readme
- Issues: https://github.com/eeschiavo/cordova-plugin-app-version/issues
- npm.io page: https://npm.io/package/eeschiavo-cordova-plugin-app-version

## Recent versions

- 1.0.0 (latest) — 2017-11-13

## README

# Cordova AppVersion plugin

Reads the version of your app from the target build settings.

## Installation

### With cordova-cli

If you are using [cordova-cli](https://github.com/apache/cordova-cli), install
with:

    cordova plugin add eeschiavo-cordova.plugin-appversion

## Use from Javascript

If you are using jQuery or AngularJS, promise style is supported. Use something like:

    cordova.getAppVersion.getVersionNumber().then(function (version) {
        $('.version').text(version);
    });

If not, pass a callback function:

    cordova.getAppVersion.getVersionNumber(function (version) {
        alert(version);
    });

In addition to the version number you can also retrieve other details about your application:

### getAppName

Returns the name of the app. E.g. "My Awesome App"

### getPackageName

Returns the package name of the app - the reversed domain name app identifier like com.example.myawesomeapp

### getVersionCode

Returns the build identifier of the app

### getVersionNumber

Returns the version number of the app

### Credits

This is a fork modified under MIT license.

---
_Source: https://npm.io/package/eeschiavo-cordova-plugin-app-version · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
