npm.io
3.0.2 • Published 6 years ago

vued-electron

Licence
MIT
Version
3.0.2
Deps
0
Size
5 kB
Vulns
0
Weekly
0

vued-electron

A small wrapper for integrating electron to Vuejs

How to install:

CommonJS:

npm install --save electron vued-electron

And in your entry file:

import Vue from 'vue'
import VuedElectron from 'vued-electron'

if(navigator.userAgent.toLowerCase().indexOf('electron/') > -1) {
  const electron = window.require('electron');
  Vue.use(VuedElectron, electron)
}

Usage:

This wrapper binds electron to this using single file components.

You can use electron like this:

this.$electron

Please check documention of electron