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

@awesome-cordova-library/appversion

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@awesome-cordova-library/appversion

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

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

id: plugin-appversion title: App Version tags:

  • cordova
  • capacitor
  • ionic
  • javascript
  • typescript
  • plugin
  • mobile
  • version
  • app version

App Version

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

Online documentation

Github documentation

Installation

Cordova

cordova plugin add cordova-plugin-app-version
npm install @awesome-cordova-library/appversion

Capacitor / Ionic

npm install cordova-plugin-app-version
npm install @awesome-cordova-library/appversion
npx cap sync

Vanilla

Declaration

export default class Appversion {
  /**
   * Return App Name
   * @return Promise<string>
   */
  static getAppName(): Promise<string> | Promise<null>;
  /**
   * Return Package Name
   * @return Promise<string>
   */
  static getPackageName(): Promise<string> | Promise<null>;
  /**
   * Return App Version Number
   * @return Promise<string>
   */
  static getVersionNumber(): Promise<string> | Promise<null>;
  /**
   * Return App Version Code
   * @return Promise<string>
   */
  static getVersionCode(): Promise<string> | Promise<null>;
  static warnPluginIsUnInstallOrIncompatible(): void;
}

Usages

import Appversion from '@awesome-cordova-library/appversion';

Appversion.getAppName().then((value) => value && setAppName(value));
Appversion.getPackageName().then((value) => value && setPackageName(value));
Appversion.getVersionNumber().then((value) => value && setVersionNumber(value));
Appversion.getVersionCode().then((value) => value && setVersionCode(value));

Keywords

FAQs

Package last updated on 01 Sep 2023

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