@vueuse/electron ​
This is an add-on of VueUse, enables electron renderer process API as Composition API.
Install ​
bash
npm i @vueuse/electron electron
Functions ​
@vueuse/electron
provides the following functions
useIpcRenderer
— provides ipcRenderer and all of its APIsuseIpcRendererInvoke
— reactive ipcRenderer.invoke API resultuseIpcRendererOn
— use ipcRenderer.on with ease and ipcRenderer.removeListener automatically on unmounteduseZoomFactor
— reactive WebFrame zoom factoruseZoomLevel
— reactive WebFrame zoom level
License ​
MIT License © 2021-PRESENT Archer Gu