{"id":20245171,"url":"https://github.com/simulatedgreg/vue-electron","last_synced_at":"2025-04-05T02:11:40.929Z","repository":{"id":57395750,"uuid":"60203511","full_name":"SimulatedGREG/vue-electron","owner":"SimulatedGREG","description":"The vue plugin that attaches electron APIs to the Vue object, making them accessible to all components.","archived":false,"fork":false,"pushed_at":"2019-10-10T00:27:07.000Z","size":12,"stargazers_count":296,"open_issues_count":4,"forks_count":30,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-12T00:03:09.220Z","etag":null,"topics":["electron","electron-vue","plugin","vue"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SimulatedGREG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-01T19:04:54.000Z","updated_at":"2025-03-07T02:41:23.000Z","dependencies_parsed_at":"2022-09-09T16:52:18.812Z","dependency_job_id":null,"html_url":"https://github.com/SimulatedGREG/vue-electron","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimulatedGREG%2Fvue-electron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimulatedGREG%2Fvue-electron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimulatedGREG%2Fvue-electron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimulatedGREG%2Fvue-electron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimulatedGREG","download_url":"https://codeload.github.com/SimulatedGREG/vue-electron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276189,"owners_count":20912288,"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":["electron","electron-vue","plugin","vue"],"created_at":"2024-11-14T09:19:21.202Z","updated_at":"2025-04-05T02:11:40.908Z","avatar_url":"https://github.com/SimulatedGREG.png","language":"JavaScript","readme":"# vue-electron\n\u003e The vue plugin that wraps [electron](https://github.com/electron/electron) APIs to the Vue object.\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n### Need a full boilerplate for creating electron apps built with vue? Make sure to check out electron-vue.\n[https://github.com/SimulatedGREG/electron-vue](https://github.com/SimulatedGREG/electron-vue)\n\n## Installing\nInstall using NPM\n```sh\nnpm install vue-electron --save\n```\n\nInclude using webpack or browserify\n\n**main.js**\n```js\nimport Vue from 'vue'\nimport VueElectron from 'vue-electron'\n\nVue.use(VueElectron)\n```\n\n## Using the plugin\nThis plugin will attach electron APIs to the Vue object itself, so accessing all APIs is dead simple. All official documentation from electron can be used and accessed from `this.$electron`.\n\nSo instead of...\n```js\nconst electron = require('electron')\n\nexport default {\n  methods: {\n    getName () {\n      return electron.remote.app.getName()\n    }\n  }\n}\n```\n\nNow you can...\n\n```js\nexport default {\n  methods: {\n    getName () {\n      return this.$electron.remote.app.getName()\n    }\n  }\n}\n```\n\nNow you might be thinking, \"Is it really that annoying to simply require electron to access it?\" Probably not, but it can get cumbersome to have to include it in every component file that needs it. In the end, attaching electron directly to Vue just makes sense.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimulatedgreg%2Fvue-electron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimulatedgreg%2Fvue-electron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimulatedgreg%2Fvue-electron/lists"}