{"id":20328133,"url":"https://github.com/Celtian/ngx-app-version","last_synced_at":"2025-05-08T01:30:51.534Z","repository":{"id":65727869,"uuid":"598275130","full_name":"Celtian/ngx-app-version","owner":"Celtian","description":"Angular directive for writing version into DOM","archived":false,"fork":false,"pushed_at":"2025-04-13T22:04:54.000Z","size":1273,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T23:20:33.260Z","etag":null,"topics":["angular","library"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Celtian.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-06T19:13:23.000Z","updated_at":"2025-04-13T22:03:37.000Z","dependencies_parsed_at":"2023-12-26T16:02:01.842Z","dependency_job_id":"70fbc306-46fa-41da-87bd-b78821fd45d5","html_url":"https://github.com/Celtian/ngx-app-version","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"b472eb9f2e60b9e8e9d5fff7979b41e56709dcec"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Celtian%2Fngx-app-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Celtian%2Fngx-app-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Celtian%2Fngx-app-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Celtian%2Fngx-app-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Celtian","download_url":"https://codeload.github.com/Celtian/ngx-app-version/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252981424,"owners_count":21835424,"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":["angular","library"],"created_at":"2024-11-14T20:00:58.187Z","updated_at":"2025-05-08T01:30:51.519Z","avatar_url":"https://github.com/Celtian.png","language":"TypeScript","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Directives"],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Celtian/ngx-app-version\" target=\"blank\"\u003e\u003cimg src=\"assets/logo.svg?sanitize=true\" alt=\"\" width=\"120\"\u003e\u003c/a\u003e\n  \u003ch1 align=\"center\"\u003eNgxAppVersion\u003c/h1\u003e\n\u003c/p\u003e\n\n[![npm version](https://badge.fury.io/js/ngx-app-version.svg)](https://badge.fury.io/js/ngx-app-version)\n[![Package License](https://img.shields.io/npm/l/ngx-app-version.svg)](https://www.npmjs.com/ngx-app-version)\n[![NPM Downloads](https://img.shields.io/npm/dm/ngx-app-version.svg)](https://www.npmjs.com/ngx-app-version)\n[![Snyk](https://snyk.io//advisor/npm-package/ngx-app-version/badge.svg)](https://snyk.io//advisor/npm-package/ngx-app-version)\n[![codecov](https://codecov.io/gh/Celtian/ngx-app-version/branch/master/graph/badge.svg?token=1IRUKIKM0D)](https://codecov.io/gh/celtian/ngx-app-version/)\n[![stars](https://badgen.net/github/stars/celtian/ngx-app-version)](https://github.com/celtian/ngx-app-version/)\n[![forks](https://badgen.net/github/forks/celtian/ngx-app-version)](https://github.com/celtian/ngx-app-version/)\n[![HitCount](http://hits.dwyl.com/celtian/ngx-app-version.svg)](http://hits.dwyl.com/celtian/ngx-app-version)\n\n\u003e Angular directive for writing version into DOM\n\n\u003e ✓ _Angular 19 compatible_\n\nHere's the [demo](http://celtian.github.io/ngx-app-version/) or [stackblitz live preview](https://stackblitz.com/edit/ngx-app-version) or [codesandbox live preview](https://codesandbox.io/s/ngx-app-version-l05882)\n\n- Lightweight\n- No dependencies!\n- Directive way\n- Customizable [options](#options)...\n\n## 🛠️ Install\n\n1. Use yarn (or npm) to install the package\n\n```terminal\nyarn add ngx-app-version\n```\n\n2. Add `provideAppVersion` into your config\n\n```typescript\nimport { provideAppVersion } from 'ngx-app-version';\n\nexport const appConfig: ApplicationConfig = {\n  providers: [\n    // ...\n    provideAppVersion({\n      version: '1.0.0'\n    })\n  ]\n};\n```\n\nor module\n\n```typescript\n  import { provideAppVersion } from 'ngx-app-version';\n\n  @NgModule({\n   // ...\n   providers: [\n     // ...\n     provideAppVersion({\n       version: '1.1.1'\n     })\n   ]\n  })\n```\n\n_Note: Do you want to get version from package.json? Consider to use [ngx-devkit-builders](https://www.npmjs.com/package/ngx-devkit-builders)._\n\n## 🚀 Quick start\n\n### Directive example\n\n```html\n\u003cdiv ngxAppVersion\u003e...\u003c/div\u003e\n```\n\n```html\n\u003cdiv app-version=\"1.1.1\"\u003e...\u003c/div\u003e\n```\n\n### Host directive example\n\n```typescript\nimport { NgxAppVersionDirective } from 'ngx-app-version';\n\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrl: './app.component.css',\n  hostDirectives: [NgxAppVersionDirective]\n})\nexport class AppComponent {}\n```\n\n```html\n\u003capp-root app-version=\"1.1.1\"\u003e...\u003c/app-root\u003e\n```\n\n## 🔧 Compatibility\n\n| Angular | ngx-app-version | Install                      |\n| ------- | --------------- | ---------------------------- |\n| \u003e= 19   | 2.x             | `yarn add ngx-app-version`   |\n| \u003e= 14   | 1.x             | `yarn add ngx-app-version@1` |\n| \u003e= 12   | 0.x             | `yarn add ngx-app-version@0` |\n\n## ⚙️ Options\n\n### Root options\n\n| Option      | Type   | Default   | Description                   |\n| ----------- | ------ | --------- | ----------------------------- |\n| **version** | string | undefined | version that will be rendered |\n\n## 📦 Dependencies\n\n_None_\n\n## 🪪 License\n\nCopyright \u0026copy; 2023 - 2025 [Dominik Hladik](https://github.com/Celtian)\n\nAll contents are licensed under the [MIT license].\n\n[mit license]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCeltian%2Fngx-app-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCeltian%2Fngx-app-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCeltian%2Fngx-app-version/lists"}