{"id":15018580,"url":"https://github.com/eddyverbruggen/nativescript-appversion","last_synced_at":"2025-10-23T19:30:52.769Z","repository":{"id":31937816,"uuid":"35507414","full_name":"EddyVerbruggen/nativescript-appversion","owner":"EddyVerbruggen","description":":1234: NativeScript plugin to retrieve your app's package ID and current version","archived":false,"fork":false,"pushed_at":"2022-11-14T13:57:03.000Z","size":27,"stargazers_count":48,"open_issues_count":3,"forks_count":21,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-30T20:30:35.557Z","etag":null,"topics":["nativescript","nativescript-plugin","version"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EddyVerbruggen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-12T19:07:44.000Z","updated_at":"2024-05-30T15:51:46.000Z","dependencies_parsed_at":"2023-01-14T20:09:34.143Z","dependency_job_id":null,"html_url":"https://github.com/EddyVerbruggen/nativescript-appversion","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-appversion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-appversion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-appversion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-appversion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EddyVerbruggen","download_url":"https://codeload.github.com/EddyVerbruggen/nativescript-appversion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237877020,"owners_count":19380344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nativescript","nativescript-plugin","version"],"created_at":"2024-09-24T19:52:08.522Z","updated_at":"2025-10-23T19:30:52.453Z","avatar_url":"https://github.com/EddyVerbruggen.png","language":"JavaScript","readme":"# NativeScript AppVersion\n\n[![NPM version][npm-image]][npm-url]\n[![Downloads][downloads-image]][npm-url]\n[![Twitter Follow][twitter-image]][twitter-url]\n\n[npm-image]:http://img.shields.io/npm/v/nativescript-appversion.svg\n[npm-url]:https://npmjs.org/package/nativescript-appversion\n[downloads-image]:http://img.shields.io/npm/dm/nativescript-appversion.svg\n[twitter-image]:https://img.shields.io/twitter/follow/eddyverbruggen.svg?style=social\u0026label=Follow%20me\n[twitter-url]:https://twitter.com/eddyverbruggen\n\nRead the current Package ID and Version (name and code) of your NativeScript app.\n\n## Installation\nRun the following command from the root of your project:\n\n```\ntns plugin add nativescript-appversion\n```\n\n## Usage\n\nTo use this plugin you must first require / import it:\n\n#### JavaScript\n```js\nvar appversion = require(\"nativescript-appversion\");\n```\n\n#### TypeScript\n```typescript\nimport * as appversion from \"nativescript-appversion\";\n```\n\n### getVersionName(Sync)\n`getVersionNameSync` is the same as `getVersionName`, except it doesn't return a Promise.\n\n#### JavaScript\n```js\n  appversion.getVersionName().then(function(v) {\n      console.log(\"Your app's version is: \" + v);\n  });\n```\n\n#### TypeScript\n```typescript\n  appversion.getVersionName().then((v: string) =\u003e {\n      console.log(\"Your app's version is: \" + v);\n  });\n```\n\n### getVersionCode(Sync)\n\n#### JavaScript\n```js\n  appversion.getVersionCode().then(function(v) {\n      console.log(\"Your app's version code is: \" + v);\n  });\n```\n\n#### TypeScript\n```typescript\n  appversion.getVersionCode().then((v: string) =\u003e {\n      console.log(\"Your app's version code is: \" + v);\n  });\n```\n\n### getAppId(Sync)\n\n#### JavaScript\n```js\n  appversion.getAppId().then(function(id) {\n      console.log(\"Your app's id is: \" + id);\n  });\n```\n\n#### TypeScript\n```typescript\n  appversion.getAppId().then((id: string) =\u003e {\n      console.log(\"Your app's id is: \" + id);\n  });\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddyverbruggen%2Fnativescript-appversion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddyverbruggen%2Fnativescript-appversion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddyverbruggen%2Fnativescript-appversion/lists"}