{"id":21161537,"url":"https://github.com/mudin/vue-global-var","last_synced_at":"2025-07-09T14:31:46.642Z","repository":{"id":65519313,"uuid":"171014664","full_name":"mudin/vue-global-var","owner":"mudin","description":"Reactive global variable can be sharable between components","archived":false,"fork":false,"pushed_at":"2019-09-14T00:30:17.000Z","size":79,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-11T19:26:03.131Z","etag":null,"topics":["global","mixins","ractive","variables","vue","vue-mixin","vuex"],"latest_commit_sha":null,"homepage":"https://mudin.github.io/vue-global-var-demo/","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/mudin.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":"2019-02-16T14:49:51.000Z","updated_at":"2023-04-01T21:06:22.000Z","dependencies_parsed_at":"2023-01-27T01:46:07.036Z","dependency_job_id":null,"html_url":"https://github.com/mudin/vue-global-var","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fvue-global-var","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fvue-global-var/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fvue-global-var/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fvue-global-var/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mudin","download_url":"https://codeload.github.com/mudin/vue-global-var/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225562099,"owners_count":17488566,"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":["global","mixins","ractive","variables","vue","vue-mixin","vuex"],"created_at":"2024-11-20T13:14:43.386Z","updated_at":"2024-11-20T13:14:44.126Z","avatar_url":"https://github.com/mudin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/mudin/vue-global-var/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/mudin/vue-global-var.svg\" alt=\"License\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://badge.fury.io/js/vue-global-var\"\u003e\n    \u003cimg src=\"https://badge.fury.io/js/vue-global-var.svg\" alt=\"npm version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://hits.dwyl.io/mudin/vue-global-var\"\u003e\n    \u003cimg src=\"http://hits.dwyl.io/mudin/vue-global-var.svg\" alt=\"HitCount\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://unpkg.com/vue-global-var@latest/dist/vue-global-var.cjs.js\"\u003e\n    \u003cimg src=\"https://img.badgesize.io/mudin/vue-global-var/master/dist/vue-global-var.cjs.js?compression=gzip\" alt=\"size\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# vue-global-var\n\nReactive global variable can be sharable between components\n\n[Demo](https://mudin.github.io/vue-global-var-demo/)\n\n## Dependencies\n\n- [Vue](https://github.com/vuejs/vue)\n- [Vuex](https://github.com/vuejs/vuex)\n\n## Installation\n\n```bash\n$ npm install --save vue-global-var\n```\n\n## How to use\n\n```js\nVue.use(VueGlobalVar, {\n  globals: {\n    $user: new User('user1'),\n    obj:{},\n    config:Config,\n    ....\n  },\n});\n```\n\nNow just use `this.$user` is any component or `$user` in its template\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudin%2Fvue-global-var","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmudin%2Fvue-global-var","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudin%2Fvue-global-var/lists"}