{"_id":"@awesome-cordova-library/appversion","name":"@awesome-cordova-library/appversion","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@awesome-cordova-library/appversion","version":"1.0.0","description":"Reads the version of your app from the target build settings.","main":"lib/index.js","types":"lib/index.d.ts","keywords":["cordova","capacitor","ionic","javascript","mobile","app version","appversion","version"],"publishConfig":{"access":"public"},"author":{"name":"Jordan AZOULAY","email":"jazoulay@joazco.com","url":"https://github.com/joazco"},"license":"SEE LICENSE IN LICENSE","repository":{"type":"git","url":"git://github.com/joazco/awesome-cordova-library.git"},"bugs":{"url":"https://github.com/joazco/awesome-cordova-library/issues"},"homepage":"https://github.com/joazco/awesome-cordova-library","devDependencies":{"@types/jest":"^27.5.1","@types/react":"~17.0.21","jest":"^28.1.0","prettier":"^2.6.2","ts-jest":"^28.0.3","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.7.2"},"scripts":{"build":"rm -rf lib/ && tsc","build-yalc":"npm run build; yalc publish --push --private","test":"jest --config jestconfig.json","format":"prettier --write \"./src/**/*.ts\"","lint":"tslint -p tsconfig.json","prepublish":"npm run format; npm run lint; npm test; npm run build"},"directories":{"lib":"lib"},"dependencies":{},"gitHead":"975ae962f28c0e3fff42b4ff0d424a7462955e74","_id":"@awesome-cordova-library/appversion@1.0.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-a1SPLyIP38ULcgTVVAEfdq6H+93yyU12NfGO6DxzhnWQlVOZmCx7Lsehez9zxI/dLwQ9KBM8M2WtfOexMvt9hQ==","shasum":"80b26889ff0b1bca1f7906b3fff86a2186714d82","tarball":"https://registry.npmjs.org/@awesome-cordova-library/appversion/-/appversion-1.0.0.tgz","fileCount":5,"unpackedSize":7288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCE8pR8XndHZ+spJfOkQTk+YgaGfyQIwd7gJLaqDvcUggIhAKE9ZoRb6KIgAwY+nv8vO9E5pC5YE7bfQfcINAwTJGt/"}]},"_npmUser":{"name":"joazco","email":"jazoulay@joazco.com"},"maintainers":[{"name":"joazco","email":"jazoulay@joazco.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/appversion_1.0.0_1693583283854_0.12351460120433"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-01T15:48:03.707Z","1.0.0":"2023-09-01T15:48:04.087Z","modified":"2023-09-01T15:48:04.369Z"},"maintainers":[{"name":"joazco","email":"jazoulay@joazco.com"}],"description":"Reads the version of your app from the target build settings.","homepage":"https://github.com/joazco/awesome-cordova-library","keywords":["cordova","capacitor","ionic","javascript","mobile","app version","appversion","version"],"repository":{"type":"git","url":"git://github.com/joazco/awesome-cordova-library.git"},"author":{"name":"Jordan AZOULAY","email":"jazoulay@joazco.com","url":"https://github.com/joazco"},"bugs":{"url":"https://github.com/joazco/awesome-cordova-library/issues"},"license":"SEE LICENSE IN LICENSE","readme":"---\nid: plugin-appversion\ntitle: App Version\ntags:\n  - cordova\n  - capacitor\n  - ionic\n  - javascript\n  - typescript\n  - plugin\n  - mobile\n  - version\n  - app version\n---\n\n# App Version\n\nReads the version of your app from the target build settings.\n\n[Online documentation](https://awesomecordovalibrary.com)\n\n[Github documentation](https://github.com/sampart/cordova-plugin-app-version)\n\n## Installation\n\n### Cordova\n\n```bash\ncordova plugin add cordova-plugin-app-version\nnpm install @awesome-cordova-library/appversion\n```\n\n### Capacitor / Ionic\n\n```bash\nnpm install cordova-plugin-app-version\nnpm install @awesome-cordova-library/appversion\nnpx cap sync\n```\n\n## Vanilla\n\n### Declaration\n\n```typescript\nexport default class Appversion {\n  /**\n   * Return App Name\n   * @return Promise<string>\n   */\n  static getAppName(): Promise<string> | Promise<null>;\n  /**\n   * Return Package Name\n   * @return Promise<string>\n   */\n  static getPackageName(): Promise<string> | Promise<null>;\n  /**\n   * Return App Version Number\n   * @return Promise<string>\n   */\n  static getVersionNumber(): Promise<string> | Promise<null>;\n  /**\n   * Return App Version Code\n   * @return Promise<string>\n   */\n  static getVersionCode(): Promise<string> | Promise<null>;\n  static warnPluginIsUnInstallOrIncompatible(): void;\n}\n```\n\n### Usages\n\n```typescript\nimport Appversion from '@awesome-cordova-library/appversion';\n\nAppversion.getAppName().then((value) => value && setAppName(value));\nAppversion.getPackageName().then((value) => value && setPackageName(value));\nAppversion.getVersionNumber().then((value) => value && setVersionNumber(value));\nAppversion.getVersionCode().then((value) => value && setVersionCode(value));\n```\n","readmeFilename":"README.md"}